home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-20 | 75.6 KB | [STAK/WILD] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: MagMaker Tools A
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| HyperCard Stack (archive/hypercard)
| idMeta
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Oct 20 19:45:48 1994, modified Thu Oct 20 19:45:48 1994, creator HyperCard, type HyperCard stack, 66784 bytes "MagMaker Tools A" , at 0x10560 10420 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Mac HyperCard stack (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [STAK] |
macFileCreator | [WILD] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 4d 61 67 4d 61 6b | 65 72 20 54 6f 6f 6c 73 |..MagMak|er Tools|
|00000010| 20 41 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | A......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 01 04 e0 00 | 00 28 b4 aa cc b1 ac aa |........|.(......|
|00000060| cc b1 ac 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 df 22 00 00 |........|....."..|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 01 04 e0 | 00 00 70 00 00 00 00 00 |........|..p.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a 20 00 00 00 01 |........|... ....|
|000000b0| 00 00 0b 8a 00 00 08 96 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 20 80 00 | 02 20 80 00 02 20 80 00 |..... ..|. ... ..|
|000000f0| de 45 39 1b 00 00 00 00 | 00 69 00 e0 01 81 02 60 |.E9.....|.i.....`|
|00000100| 00 00 00 00 01 90 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d e7 00 00 0c 82 | 01 18 01 80 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 75 70 64 61 74 | 65 54 65 78 74 0d 67 6c |on updat|eText.gl|
|00000690| 6f 62 61 6c 20 65 6e 64 | 50 61 67 65 0d 6c 6f 63 |obal end|Page.loc|
|000006a0| 6b 20 6d 65 73 73 61 67 | 65 73 0d 70 75 74 20 74 |k messag|es.put t|
|000006b0| 68 65 20 76 69 73 69 62 | 6c 65 20 6f 66 20 6d 73 |he visib|le of ms|
|000006c0| 67 20 69 6e 74 6f 20 6d | 56 69 73 0d 70 75 74 20 |g into m|Vis.put |
|000006d0| 65 6d 70 74 79 20 69 6e | 74 6f 20 65 6e 64 50 61 |empty in|to endPa|
|000006e0| 67 65 0d 69 66 20 74 68 | 65 20 73 68 6f 72 74 20 |ge.if th|e short |
|000006f0| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 63 64 20 |name of |this cd |
|00000700| 69 73 20 22 54 61 62 6c | 65 20 6f 66 20 43 6f 6e |is "Tabl|e of Con|
|00000710| 74 65 6e 74 73 22 20 74 | 68 65 6e 0d 61 6e 73 77 |tents" t|hen.answ|
|00000720| 65 72 20 22 43 61 6e d5 | 74 20 72 65 66 6c 6f 77 |er "Can.|t reflow|
|00000730| 20 74 68 65 20 74 65 78 | 74 20 74 68 65 20 54 61 | the tex|t the Ta|
|00000740| 62 6c 65 20 6f 66 20 43 | 6f 6e 74 65 6e 74 73 2e |ble of C|ontents.|
|00000750| 22 0d 65 78 69 74 20 75 | 70 64 61 74 65 54 65 78 |".exit u|pdateTex|
|00000760| 74 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 74 68 65 |t.end if|.put the|
|00000770| 20 73 68 6f 72 74 20 69 | 64 20 6f 66 20 74 68 69 | short i|d of thi|
|00000780| 73 20 63 64 20 69 6e 74 | 6f 20 73 74 61 72 74 43 |s cd int|o startC|
|00000790| 64 49 64 0d 69 66 20 66 | 6c 64 20 22 50 69 63 74 |dId.if f|ld "Pict|
|000007a0| 54 68 69 73 50 61 67 65 | 22 20 69 73 20 6e 6f 74 |ThisPage|" is not|
|000007b0| 20 65 6d 70 74 79 20 61 | 6e 64 20 74 68 65 72 65 | empty a|nd there|
|000007c0| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 28 69 74 | is a wi|ndow (it|
|000007d0| 65 6d 20 31 20 6f 66 20 | 66 6c 64 20 22 50 69 63 |em 1 of |fld "Pic|
|000007e0| 74 54 68 69 73 50 61 67 | 65 22 29 20 74 68 65 6e |tThisPag|e") then|
|000007f0| 0d 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 28 69 |.close w|indow (i|
|00000800| 74 65 6d 20 31 20 6f 66 | 20 66 6c 64 20 22 50 69 |tem 1 of| fld "Pi|
|00000810| 63 74 54 68 69 73 50 61 | 67 65 22 29 0d 65 6e 64 |ctThisPa|ge").end|
|00000820| 20 69 66 0d 70 75 74 20 | 66 6c 64 20 22 41 72 74 | if.put |fld "Art|
|00000830| 69 63 6c 65 4e 61 6d 65 | 22 20 69 6e 74 6f 20 74 |icleName|" into t|
|00000840| 68 69 73 43 68 61 70 74 | 65 72 0d 70 75 6c 6c 54 |hisChapt|er.pullT|
|00000850| 65 78 74 20 74 68 69 73 | 43 68 61 70 74 65 72 0d |ext this|Chapter.|
|00000860| 64 6f 55 70 64 61 74 65 | 20 74 68 69 73 43 68 61 |doUpdate| thisCha|
|00000870| 70 74 65 72 2c 73 74 61 | 72 74 43 64 49 64 0d 73 |pter,sta|rtCdId.s|
|00000880| 65 74 20 74 68 65 20 76 | 69 73 69 62 6c 65 20 6f |et the v|isible o|
|00000890| 66 20 6d 73 67 20 74 6f | 20 6d 56 69 73 0d 65 6e |f msg to| mVis.en|
|000008a0| 64 20 75 70 64 61 74 65 | 54 65 78 74 0d 0d 6f 6e |d update|Text..on|
|000008b0| 20 6f 70 65 6e 43 61 72 | 64 0d 69 66 20 74 6f 6f | openCar|d.if too|
|000008c0| 6c 73 53 74 61 63 6b 28 | 29 20 74 68 65 6e 20 65 |lsStack(|) then e|
|000008d0| 78 69 74 20 6f 70 65 6e | 43 61 72 64 0d 69 66 20 |xit open|Card.if |
|000008e0| 74 68 65 72 65 20 69 73 | 20 61 20 6d 65 6e 75 20 |there is| a menu |
|000008f0| 22 4d 61 67 4d 61 6b 65 | 72 22 20 74 68 65 6e 0d |"MagMake|r" then.|
|00000900| 69 66 20 74 68 65 20 68 | 69 67 68 4c 69 67 68 74 |if the h|ighLight|
|00000910| 20 6f 66 20 62 67 20 62 | 74 6e 20 22 4c 6f 63 6b | of bg b|tn "Lock|
|00000920| 50 61 67 65 22 20 74 68 | 65 6e 0d 73 65 74 20 74 |Page" th|en.set t|
|00000930| 68 65 20 6e 61 6d 65 20 | 6f 66 20 6d 65 6e 75 49 |he name |of menuI|
|00000940| 74 65 6d 20 31 31 20 6f | 66 20 6d 65 6e 75 20 22 |tem 11 o|f menu "|
|00000950| 4d 61 67 4d 61 6b 65 72 | 22 20 74 6f 20 22 55 6e |MagMaker|" to "Un|
|00000960| 6c 6f 63 6b 20 50 61 67 | 65 22 0d 65 6c 73 65 0d |lock Pag|e".else.|
|00000970| 73 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |set the |name of |
|00000980| 6d 65 6e 75 49 74 65 6d | 20 31 31 20 6f 66 20 6d |menuItem| 11 of m|
|00000990| 65 6e 75 20 22 4d 61 67 | 4d 61 6b 65 72 22 20 74 |enu "Mag|Maker" t|
|000009a0| 6f 20 22 4c 6f 63 6b 20 | 50 61 67 65 22 0d 65 6e |o "Lock |Page".en|
|000009b0| 64 20 69 66 0d 69 66 20 | 74 68 65 72 65 20 69 73 |d if.if |there is|
|000009c0| 20 61 20 62 74 6e 20 22 | 50 69 63 74 75 72 65 22 | a btn "|Picture"|
|000009d0| 20 74 68 65 6e 0d 73 65 | 74 20 74 68 65 20 6e 61 | then.se|t the na|
|000009e0| 6d 65 20 6f 66 20 6d 65 | 6e 75 49 74 65 6d 20 31 |me of me|nuItem 1|
|000009f0| 31 20 6f 66 20 6d 65 6e | 75 20 22 4c 61 79 6f 75 |1 of men|u "Layou|
|00000a00| 74 22 20 74 6f 20 22 45 | 64 69 74 20 52 75 6e 2d |t" to "E|dit Run-|
|00000a10| 41 72 6f 75 6e 64 22 0d | 65 6c 73 65 0d 73 65 74 |Around".|else.set|
|00000a20| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 6d 65 6e | the nam|e of men|
|00000a30| 75 49 74 65 6d 20 31 31 | 20 6f 66 20 6d 65 6e 75 |uItem 11| of menu|
|00000a40| 20 22 4c 61 79 6f 75 74 | 22 20 74 6f 20 22 43 72 | "Layout|" to "Cr|
|00000a50| 65 61 74 65 20 52 75 6e | 2d 41 72 6f 75 6e 64 22 |eate Run|-Around"|
|00000a60| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 65 |.end if.|end if.e|
|00000a70| 6e 64 20 6f 70 65 6e 43 | 61 72 64 0d 0d 0d 6f 6e |nd openC|ard...on|
|00000a80| 20 63 6c 65 61 6e 54 68 | 65 54 65 78 74 0d 67 6c | cleanTh|eText.gl|
|00000a90| 6f 62 61 6c 20 66 6c 64 | 4c 69 73 74 0d 70 75 74 |obal fld|List.put|
|00000aa0| 20 31 20 69 6e 74 6f 20 | 79 0d 72 65 70 65 61 74 | 1 into |y.repeat|
|00000ab0| 20 77 69 74 68 20 79 20 | 3d 20 31 20 74 6f 20 28 | with y |= 1 to (|
|00000ac0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |the numb|er of it|
|00000ad0| 65 6d 73 20 6f 66 20 66 | 6c 64 4c 69 73 74 29 0d |ems of f|ldList).|
|00000ae0| 70 75 74 20 63 64 20 66 | 6c 64 20 28 69 74 65 6d |put cd f|ld (item|
|00000af0| 20 79 20 6f 66 20 66 6c | 64 4c 69 73 74 29 20 6f | y of fl|dList) o|
|00000b00| 66 20 63 64 20 22 54 61 | 62 6c 65 20 6f 66 20 43 |f cd "Ta|ble of C|
|00000b10| 6f 6e 74 65 6e 74 73 22 | 20 69 6e 74 6f 20 61 6c |ontents"| into al|
|00000b20| 6c 54 65 78 74 0d 70 75 | 74 20 22 43 6c 65 61 6e |lText.pu|t "Clean|
|00000b30| 69 6e 67 20 75 70 20 74 | 65 78 74 2e 22 0d 72 65 |ing up t|ext.".re|
|00000b40| 70 65 61 74 0d 70 75 74 | 20 74 68 65 20 6e 75 6d |peat.put| the num|
|00000b50| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 6f 66 20 |ber of c|hars of |
|00000b60| 61 6c 6c 54 65 78 74 20 | 69 6e 74 6f 20 74 6f 74 |allText |into tot|
|00000b70| 43 68 61 72 73 0d 69 66 | 20 74 68 65 20 66 69 72 |Chars.if| the fir|
|00000b80| 73 74 20 63 68 61 72 20 | 6f 66 20 61 6c 6c 54 65 |st char |of allTe|
|00000b90| 78 74 20 3d 20 73 70 61 | 63 65 20 74 68 65 6e 0d |xt = spa|ce then.|
|00000ba0| 70 75 74 20 73 70 61 63 | 65 20 69 6e 74 6f 20 72 |put spac|e into r|
|00000bb0| 65 53 70 61 63 65 0d 65 | 6c 73 65 0d 70 75 74 20 |eSpace.e|lse.put |
|00000bc0| 22 22 20 69 6e 74 6f 20 | 72 65 53 70 61 63 65 0d |"" into |reSpace.|
|00000bd0| 65 6e 64 20 69 66 0d 69 | 66 20 74 6f 74 43 68 61 |end if.i|f totCha|
|00000be0| 72 73 20 3e 20 31 30 30 | 30 20 74 68 65 6e 0d 70 |rs > 100|0 then.p|
|00000bf0| 75 74 20 63 68 61 72 20 | 31 20 74 6f 20 31 30 30 |ut char |1 to 100|
|00000c00| 30 20 6f 66 20 61 6c 6c | 54 65 78 74 20 69 6e 74 |0 of all|Text int|
|00000c10| 6f 20 73 74 72 69 70 54 | 65 78 74 0d 70 75 74 20 |o stripT|ext.put |
|00000c20| 72 65 74 75 72 6e 73 4f | 75 74 28 73 74 72 69 70 |returnsO|ut(strip|
|00000c30| 54 65 78 74 29 20 69 6e | 74 6f 20 73 74 72 69 70 |Text) in|to strip|
|00000c40| 54 65 78 74 0d 70 75 74 | 20 72 65 53 70 61 63 65 |Text.put| reSpace|
|00000c50| 20 26 20 66 61 73 74 53 | 74 72 69 70 53 70 61 63 | & fastS|tripSpac|
|00000c60| 65 73 28 73 74 72 69 70 | 54 65 78 74 29 20 61 66 |es(strip|Text) af|
|00000c70| 74 65 72 20 63 6c 65 61 | 6e 54 65 78 74 0d 64 65 |ter clea|nText.de|
|00000c80| 6c 65 74 65 20 63 68 61 | 72 20 31 20 74 6f 20 31 |lete cha|r 1 to 1|
|00000c90| 30 30 30 20 6f 66 20 61 | 6c 6c 54 65 78 74 0d 65 |000 of a|llText.e|
|00000ca0| 6c 73 65 0d 70 75 74 20 | 63 68 61 72 20 31 20 74 |lse.put |char 1 t|
|00000cb0| 6f 20 28 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |o (the n|umber of|
|00000cc0| 20 63 68 61 72 73 20 6f | 66 20 61 6c 6c 54 65 78 | chars o|f allTex|
|00000cd0| 74 29 20 6f 66 20 61 6c | 6c 54 65 78 74 20 69 6e |t) of al|lText in|
|00000ce0| 74 6f 20 73 74 72 69 70 | 54 65 78 74 0d 70 75 74 |to strip|Text.put|
|00000cf0| 20 72 65 74 75 72 6e 73 | 4f 75 74 28 73 74 72 69 | returns|Out(stri|
|00000d00| 70 54 65 78 74 29 20 69 | 6e 74 6f 20 73 74 72 69 |pText) i|nto stri|
|00000d10| 70 54 65 78 74 0d 70 75 | 74 20 72 65 53 70 61 63 |pText.pu|t reSpac|
|00000d20| 65 20 26 20 66 61 73 74 | 53 74 72 69 70 53 70 61 |e & fast|StripSpa|
|00000d30| 63 65 73 28 73 74 72 69 | 70 54 65 78 74 29 20 61 |ces(stri|pText) a|
|00000d40| 66 74 65 72 20 63 6c 65 | 61 6e 54 65 78 74 0d 65 |fter cle|anText.e|
|00000d50| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |xit repe|at.end i|
|00000d60| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 70 75 74 |f.end re|peat.put|
|00000d70| 20 63 6c 65 61 6e 54 65 | 78 74 20 69 6e 74 6f 20 | cleanTe|xt into |
|00000d80| 63 64 20 66 6c 64 20 28 | 69 74 65 6d 20 79 20 6f |cd fld (|item y o|
|00000d90| 66 20 66 6c 64 4c 69 73 | 74 29 20 6f 66 20 63 64 |f fldLis|t) of cd|
|00000da0| 20 22 54 61 62 6c 65 20 | 6f 66 20 43 6f 6e 74 65 | "Table |of Conte|
|00000db0| 6e 74 73 22 0d 69 66 20 | 79 20 3e 20 31 20 74 68 |nts".if |y > 1 th|
|00000dc0| 65 6e 0d 70 75 73 68 20 | 63 64 0d 67 6f 20 63 64 |en.push |cd.go cd|
|00000dd0| 20 22 54 61 62 6c 65 20 | 6f 66 20 43 6f 6e 74 65 | "Table |of Conte|
|00000de0| 6e 74 73 22 0d 70 75 74 | 20 74 68 65 20 66 69 72 |nts".put| the fir|
|00000df0| 73 74 20 77 6f 72 64 20 | 6f 66 20 63 64 20 66 6c |st word |of cd fl|
|00000e00| 64 20 28 69 74 65 6d 20 | 79 20 6f 66 20 66 6c 64 |d (item |y of fld|
|00000e10| 4c 69 73 74 29 20 61 66 | 74 65 72 20 63 64 20 66 |List) af|ter cd f|
|00000e20| 6c 64 20 28 69 74 65 6d | 20 79 20 2d 20 31 20 6f |ld (item| y - 1 o|
|00000e30| 66 20 66 6c 64 4c 69 73 | 74 29 0d 70 75 74 20 65 |f fldLis|t).put e|
|00000e40| 6d 70 74 79 20 69 6e 74 | 6f 20 74 68 65 20 66 69 |mpty int|o the fi|
|00000e50| 72 73 74 20 77 6f 72 64 | 20 6f 66 20 63 64 20 66 |rst word| of cd f|
|00000e60| 6c 64 20 28 69 74 65 6d | 20 79 20 6f 66 20 66 6c |ld (item| y of fl|
|00000e70| 64 4c 69 73 74 29 0d 70 | 6f 70 20 63 64 0d 65 6e |dList).p|op cd.en|
|00000e80| 64 20 69 66 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |d if.put| empty i|
|00000e90| 6e 74 6f 20 63 6c 65 61 | 6e 54 65 78 74 0d 65 6e |nto clea|nText.en|
|00000ea0| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 63 6c 65 |d repeat|.end cle|
|00000eb0| 61 6e 54 68 65 54 65 78 | 74 0d 0d 6f 6e 20 70 75 |anTheTex|t..on pu|
|00000ec0| 6c 6c 54 65 78 74 20 77 | 68 61 74 43 68 61 70 74 |llText w|hatChapt|
|00000ed0| 65 72 0d 67 6c 6f 62 61 | 6c 20 66 6c 64 4c 69 73 |er.globa|l fldLis|
|00000ee0| 74 0d 75 6e 6d 61 72 6b | 20 61 6c 6c 20 63 64 73 |t.unmark| all cds|
|00000ef0| 0d 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 |.put emp|ty into |
|00000f00| 61 6c 6c 54 65 78 74 0d | 70 75 74 20 31 20 69 6e |allText.|put 1 in|
|00000f10| 74 6f 20 74 69 6d 65 73 | 54 68 72 75 0d 6d 61 72 |to times|Thru.mar|
|00000f20| 6b 20 63 64 73 20 77 68 | 65 72 65 20 66 6c 64 20 |k cds wh|ere fld |
|00000f30| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 69 73 |"Article|Name" is|
|00000f40| 20 77 68 61 74 43 68 61 | 70 74 65 72 0d 73 65 74 | whatCha|pter.set|
|00000f50| 20 74 68 65 20 63 61 6e | 74 41 62 6f 72 74 20 6f | the can|tAbort o|
|00000f60| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 74 6f 20 |f this s|tack to |
|00000f70| 74 72 75 65 0d 72 65 70 | 65 61 74 20 75 6e 74 69 |true.rep|eat unti|
|00000f80| 6c 20 28 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |l (the n|umber of|
|00000f90| 20 6d 61 72 6b 65 64 20 | 63 64 73 29 20 3d 20 30 | marked |cds) = 0|
|00000fa0| 0d 67 6f 20 66 69 72 73 | 74 20 6d 61 72 6b 65 64 |.go firs|t marked|
|00000fb0| 20 63 64 0d 69 66 20 6e | 6f 74 20 74 68 65 20 68 | cd.if n|ot the h|
|00000fc0| 69 67 68 6c 69 67 68 74 | 20 6f 66 20 62 67 20 62 |ighlight| of bg b|
|00000fd0| 74 6e 20 22 4c 6f 63 6b | 50 61 67 65 22 20 74 68 |tn "Lock|Page" th|
|00000fe0| 65 6e 0d 70 75 74 20 66 | 6c 64 20 62 6f 64 79 20 |en.put f|ld body |
|00000ff0| 26 20 73 70 61 63 65 20 | 61 66 74 65 72 20 61 6c |& space |after al|
|00001000| 6c 54 65 78 74 0d 70 75 | 74 20 65 6d 70 74 79 20 |lText.pu|t empty |
|00001010| 69 6e 74 6f 20 66 6c 64 | 20 22 42 6f 64 79 22 0d |into fld| "Body".|
|00001020| 65 6e 64 20 69 66 0d 75 | 6e 6d 61 72 6b 20 74 68 |end if.u|nmark th|
|00001030| 69 73 20 63 64 0d 69 66 | 20 74 68 65 20 6c 65 6e |is cd.if| the len|
|00001040| 67 74 68 20 6f 66 20 61 | 6c 6c 54 65 78 74 20 3e |gth of a|llText >|
|00001050| 20 38 31 39 32 20 74 68 | 65 6e 0d 70 75 73 68 20 | 8192 th|en.push |
|00001060| 63 64 0d 67 6f 20 63 64 | 20 22 54 61 62 6c 65 20 |cd.go cd| "Table |
|00001070| 6f 66 20 43 6f 6e 74 65 | 6e 74 73 22 0d 64 6f 4d |of Conte|nts".doM|
|00001080| 65 6e 75 20 22 4e 65 77 | 20 46 69 65 6c 64 22 0d |enu "New| Field".|
|00001090| 73 65 74 20 74 68 65 20 | 6e 75 6d 62 65 72 46 6f |set the |numberFo|
|000010a0| 72 6d 61 74 20 74 6f 20 | 22 30 22 0d 73 65 74 20 |rmat to |"0".set |
|000010b0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 63 64 20 66 |the name| of cd f|
|000010c0| 6c 64 20 28 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |ld (the |number o|
|000010d0| 66 20 74 68 65 20 6c 61 | 73 74 20 63 64 20 66 6c |f the la|st cd fl|
|000010e0| 64 20 6f 66 20 74 68 69 | 73 20 63 64 29 20 74 6f |d of thi|s cd) to|
|000010f0| 20 22 54 65 78 74 46 69 | 65 6c 64 22 20 26 20 74 | "TextFi|eld" & t|
|00001100| 69 6d 65 73 54 68 72 75 | 0d 70 75 74 20 61 6c 6c |imesThru|.put all|
|00001110| 54 65 78 74 20 69 6e 74 | 6f 20 63 64 20 66 6c 64 |Text int|o cd fld|
|00001120| 20 28 22 54 65 78 74 46 | 69 65 6c 64 22 20 26 20 | ("TextF|ield" & |
|00001130| 74 69 6d 65 73 54 68 72 | 75 29 0d 70 75 74 20 22 |timesThr|u).put "|
|00001140| 54 65 78 74 46 69 65 6c | 64 22 20 26 20 74 69 6d |TextFiel|d" & tim|
|00001150| 65 73 54 68 72 75 20 26 | 20 22 2c 22 20 61 66 74 |esThru &| "," aft|
|00001160| 65 72 20 66 6c 64 4c 69 | 73 74 0d 61 64 64 20 31 |er fldLi|st.add 1|
|00001170| 20 74 6f 20 74 69 6d 65 | 73 54 68 72 75 0d 70 75 | to time|sThru.pu|
|00001180| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 61 6c 6c |t empty |into all|
|00001190| 54 65 78 74 0d 70 6f 70 | 20 63 64 0d 65 6e 64 20 |Text.pop| cd.end |
|000011a0| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 67 6f |if.end r|epeat.go|
|000011b0| 20 63 64 20 22 54 61 62 | 6c 65 20 6f 66 20 43 6f | cd "Tab|le of Co|
|000011c0| 6e 74 65 6e 74 73 22 0d | 64 6f 4d 65 6e 75 20 22 |ntents".|doMenu "|
|000011d0| 4e 65 77 20 46 69 65 6c | 64 22 0d 63 68 6f 6f 73 |New Fiel|d".choos|
|000011e0| 65 20 74 68 65 20 62 72 | 6f 77 73 65 20 74 6f 6f |e the br|owse too|
|000011f0| 6c 0d 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |l.set th|e name o|
|00001200| 66 20 63 64 20 66 6c 64 | 20 28 74 68 65 20 6e 75 |f cd fld| (the nu|
|00001210| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |mber of |the last|
|00001220| 20 63 64 20 66 6c 64 20 | 6f 66 20 74 68 69 73 20 | cd fld |of this |
|00001230| 63 64 29 20 74 6f 20 22 | 54 65 78 74 46 69 65 6c |cd) to "|TextFiel|
|00001240| 64 22 20 26 20 74 69 6d | 65 73 54 68 72 75 0d 70 |d" & tim|esThru.p|
|00001250| 75 74 20 61 6c 6c 54 65 | 78 74 20 69 6e 74 6f 20 |ut allTe|xt into |
|00001260| 63 64 20 66 6c 64 20 28 | 22 54 65 78 74 46 69 65 |cd fld (|"TextFie|
|00001270| 6c 64 22 20 26 20 74 69 | 6d 65 73 54 68 72 75 29 |ld" & ti|mesThru)|
|00001280| 0d 70 75 74 20 22 54 65 | 78 74 46 69 65 6c 64 22 |.put "Te|xtField"|
|00001290| 20 26 20 74 69 6d 65 73 | 54 68 72 75 20 26 20 22 | & times|Thru & "|
|000012a0| 2c 22 20 61 66 74 65 72 | 20 66 6c 64 4c 69 73 74 |," after| fldList|
|000012b0| 0d 73 65 74 20 74 68 65 | 20 63 61 6e 74 41 62 6f |.set the| cantAbo|
|000012c0| 72 74 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |rt of th|is stack|
|000012d0| 20 74 6f 20 66 61 6c 73 | 65 0d 63 6c 65 61 6e 54 | to fals|e.cleanT|
|000012e0| 68 65 54 65 78 74 0d 65 | 6e 64 20 70 75 6c 6c 54 |heText.e|nd pullT|
|000012f0| 65 78 74 0d 0d 6f 6e 20 | 69 6d 70 6f 72 74 54 65 |ext..on |importTe|
|00001300| 78 74 0d 67 6c 6f 62 61 | 6c 20 66 6c 64 4c 69 73 |xt.globa|l fldLis|
|00001310| 74 0d 6c 6f 63 6b 20 6d | 65 73 73 61 67 65 73 0d |t.lock m|essages.|
|00001320| 69 66 20 74 68 65 20 73 | 68 6f 72 74 20 6e 61 6d |if the s|hort nam|
|00001330| 65 20 6f 66 20 74 68 69 | 73 20 63 64 20 69 73 20 |e of thi|s cd is |
|00001340| 22 54 61 62 6c 65 20 6f | 66 20 43 6f 6e 74 65 6e |"Table o|f Conten|
|00001350| 74 73 22 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |ts" then|.answer |
|00001360| 22 43 61 6e d5 74 20 69 | 6d 70 6f 72 74 20 74 65 |"Can.t i|mport te|
|00001370| 78 74 20 69 6e 74 6f 20 | 74 68 65 20 54 61 62 6c |xt into |the Tabl|
|00001380| 65 20 6f 66 20 43 6f 6e | 74 65 6e 74 73 2e 22 0d |e of Con|tents.".|
|00001390| 65 78 69 74 20 69 6d 70 | 6f 72 74 54 65 78 74 0d |exit imp|ortText.|
|000013a0| 65 6e 64 20 69 66 0d 70 | 75 74 20 74 68 65 20 73 |end if.p|ut the s|
|000013b0| 68 6f 72 74 20 69 64 20 | 6f 66 20 74 68 69 73 20 |hort id |of this |
|000013c0| 63 64 20 69 6e 74 6f 20 | 73 74 61 72 74 43 64 49 |cd into |startCdI|
|000013d0| 64 0d 69 66 20 66 6c 64 | 20 22 50 69 63 74 54 68 |d.if fld| "PictTh|
|000013e0| 69 73 50 61 67 65 22 20 | 69 73 20 6e 6f 74 20 65 |isPage" |is not e|
|000013f0| 6d 70 74 79 20 61 6e 64 | 20 74 68 65 72 65 20 69 |mpty and| there i|
|00001400| 73 20 61 20 77 69 6e 64 | 6f 77 20 28 69 74 65 6d |s a wind|ow (item|
|00001410| 20 31 20 6f 66 20 66 6c | 64 20 22 50 69 63 74 54 | 1 of fl|d "PictT|
|00001420| 68 69 73 50 61 67 65 22 | 29 20 74 68 65 6e 0d 63 |hisPage"|) then.c|
|00001430| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 28 69 74 65 |lose win|dow (ite|
|00001440| 6d 20 31 20 6f 66 20 66 | 6c 64 20 22 50 69 63 74 |m 1 of f|ld "Pict|
|00001450| 54 68 69 73 50 61 67 65 | 22 29 0d 65 6e 64 20 69 |ThisPage|").end i|
|00001460| 66 0d 70 75 74 20 66 6c | 64 20 22 41 72 74 69 63 |f.put fl|d "Artic|
|00001470| 6c 65 4e 61 6d 65 22 20 | 69 6e 74 6f 20 74 68 69 |leName" |into thi|
|00001480| 73 43 68 61 70 74 65 72 | 0d 70 75 74 20 65 6d 70 |sChapter|.put emp|
|00001490| 74 79 20 69 6e 74 6f 20 | 66 6c 64 4c 69 73 74 0d |ty into |fldList.|
|000014a0| 69 66 20 74 6f 6f 6c 73 | 53 74 61 63 6b 28 29 20 |if tools|Stack() |
|000014b0| 74 68 65 6e 20 65 78 69 | 74 20 69 6d 70 6f 72 74 |then exi|t import|
|000014c0| 54 65 78 74 0d 70 75 74 | 20 74 68 65 20 76 69 73 |Text.put| the vis|
|000014d0| 69 62 6c 65 20 6f 66 20 | 6d 73 67 20 69 6e 74 6f |ible of |msg into|
|000014e0| 20 6d 56 69 73 0d 61 6e | 73 77 65 72 20 66 69 6c | mVis.an|swer fil|
|000014f0| 65 20 22 43 68 6f 6f 73 | 65 20 61 20 74 65 78 74 |e "Choos|e a text|
|00001500| 20 66 69 6c 65 20 74 6f | 20 69 6d 70 6f 72 74 22 | file to| import"|
|00001510| 20 6f 66 20 74 79 70 65 | 20 74 65 78 74 0d 69 66 | of type| text.if|
|00001520| 20 69 74 20 69 73 20 65 | 6d 70 74 79 20 74 68 65 | it is e|mpty the|
|00001530| 6e 20 65 78 69 74 20 69 | 6d 70 6f 72 74 54 65 78 |n exit i|mportTex|
|00001540| 74 0d 70 75 74 20 69 74 | 20 69 6e 74 6f 20 74 68 |t.put it| into th|
|00001550| 65 46 69 6c 65 0d 61 6e | 73 77 65 72 20 22 49 6e |eFile.an|swer "In|
|00001560| 64 65 6e 74 20 70 61 72 | 61 67 72 61 70 68 73 3f |dent par|agraphs?|
|00001570| 22 20 77 69 74 68 20 22 | 4e 6f 22 20 6f 72 20 22 |" with "|No" or "|
|00001580| 49 6e 64 65 6e 74 22 0d | 69 66 20 69 74 20 69 73 |Indent".|if it is|
|00001590| 20 22 49 6e 64 65 6e 74 | 22 20 74 68 65 6e 20 70 | "Indent|" then p|
|000015a0| 75 74 20 74 72 75 65 20 | 69 6e 74 6f 20 6d 61 6b |ut true |into mak|
|000015b0| 65 49 6e 64 65 6e 74 73 | 0d 61 6e 73 77 65 72 20 |eIndents|.answer |
|000015c0| 22 53 74 72 69 70 20 72 | 65 74 75 72 6e 73 20 66 |"Strip r|eturns f|
|000015d0| 72 6f 6d 20 69 6d 70 6f | 72 74 65 64 20 74 65 78 |rom impo|rted tex|
|000015e0| 74 3f 22 20 77 69 74 68 | 20 22 4e 6f 22 20 6f 72 |t?" with| "No" or|
|000015f0| 20 22 59 65 73 22 0d 69 | 66 20 69 74 20 69 73 20 | "Yes".i|f it is |
|00001600| 22 59 65 73 22 20 74 68 | 65 6e 20 70 75 74 20 74 |"Yes" th|en put t|
|00001610| 72 75 65 20 69 6e 74 6f | 20 64 65 52 65 74 75 72 |rue into| deRetur|
|00001620| 6e 0d 70 75 74 20 74 72 | 75 65 20 69 6e 74 6f 20 |n.put tr|ue into |
|00001630| 64 65 44 61 73 68 0d 6f | 70 65 6e 20 66 69 6c 65 |deDash.o|pen file|
|00001640| 20 74 68 65 46 69 6c 65 | 0d 75 6e 6d 61 72 6b 20 | theFile|.unmark |
|00001650| 61 6c 6c 20 63 64 73 0d | 70 75 73 68 20 63 64 0d |all cds.|push cd.|
|00001660| 70 75 74 20 31 20 69 6e | 74 6f 20 78 0d 6c 6f 63 |put 1 in|to x.loc|
|00001670| 6b 20 73 63 72 65 65 6e | 0d 67 6f 20 63 64 20 22 |k screen|.go cd "|
|00001680| 54 61 62 6c 65 20 6f 66 | 20 43 6f 6e 74 65 6e 74 |Table of| Content|
|00001690| 73 22 0d 72 65 70 65 61 | 74 20 66 6f 72 65 76 65 |s".repea|t foreve|
|000016a0| 72 0d 70 75 74 20 22 52 | 65 61 64 69 6e 67 20 66 |r.put "R|eading f|
|000016b0| 72 6f 6d 20 74 65 78 74 | 20 66 69 6c 65 2e 22 0d |rom text| file.".|
|000016c0| 72 65 61 64 20 66 72 6f | 6d 20 66 69 6c 65 20 74 |read fro|m file t|
|000016d0| 68 65 46 69 6c 65 20 66 | 6f 72 20 38 31 39 32 0d |heFile f|or 8192.|
|000016e0| 69 66 20 69 74 20 69 73 | 20 65 6d 70 74 79 20 74 |if it is| empty t|
|000016f0| 68 65 6e 20 65 78 69 74 | 20 72 65 70 65 61 74 0d |hen exit| repeat.|
|00001700| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 74 68 65 54 |put it i|nto theT|
|00001710| 65 78 74 0d 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |ext.put |the numb|
|00001720| 65 72 20 6f 66 20 63 68 | 61 72 73 20 6f 66 20 74 |er of ch|ars of t|
|00001730| 68 65 54 65 78 74 20 26 | 20 22 20 63 68 61 72 61 |heText &| " chara|
|00001740| 63 74 65 72 73 20 69 6d | 70 6f 72 74 65 64 2e 22 |cters im|ported."|
|00001750| 0d 77 61 69 74 20 32 20 | 73 65 63 73 0d 73 65 74 |.wait 2 |secs.set|
|00001760| 20 74 68 65 20 63 61 6e | 74 41 62 6f 72 74 20 6f | the can|tAbort o|
|00001770| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 74 6f 20 |f this s|tack to |
|00001780| 74 72 75 65 0d 64 6f 4d | 65 6e 75 20 22 4e 65 77 |true.doM|enu "New|
|00001790| 20 46 69 65 6c 64 22 0d | 73 65 74 20 74 68 65 20 | Field".|set the |
|000017a0| 6e 75 6d 62 65 72 46 6f | 72 6d 61 74 20 74 6f 20 |numberFo|rmat to |
|000017b0| 22 30 22 0d 73 65 74 20 | 74 68 65 20 6e 61 6d 65 |"0".set |the name|
|000017c0| 20 6f 66 20 63 64 20 66 | 6c 64 20 28 74 68 65 20 | of cd f|ld (the |
|000017d0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 6c 61 |number o|f the la|
|000017e0| 73 74 20 63 64 20 66 6c | 64 20 6f 66 20 74 68 69 |st cd fl|d of thi|
|000017f0| 73 20 63 64 29 20 74 6f | 20 22 54 65 78 74 46 69 |s cd) to| "TextFi|
|00001800| 65 6c 64 22 20 26 20 78 | 0d 70 75 74 20 74 68 65 |eld" & x|.put the|
|00001810| 54 65 78 74 20 69 6e 74 | 6f 20 63 64 20 66 6c 64 |Text int|o cd fld|
|00001820| 20 28 22 54 65 78 74 46 | 69 65 6c 64 22 20 26 20 | ("TextF|ield" & |
|00001830| 78 29 0d 70 75 74 20 22 | 54 65 78 74 46 69 65 6c |x).put "|TextFiel|
|00001840| 64 22 20 26 20 78 20 26 | 20 22 2c 22 20 61 66 74 |d" & x &| "," aft|
|00001850| 65 72 20 66 6c 64 4c 69 | 73 74 0d 73 65 74 20 74 |er fldLi|st.set t|
|00001860| 68 65 20 63 61 6e 74 41 | 62 6f 72 74 20 6f 66 20 |he cantA|bort of |
|00001870| 74 68 69 73 20 73 74 61 | 63 6b 20 74 6f 20 66 61 |this sta|ck to fa|
|00001880| 6c 73 65 0d 63 68 6f 6f | 73 65 20 74 68 65 20 62 |lse.choo|se the b|
|00001890| 72 6f 77 73 65 20 74 6f | 6f 6c 0d 61 64 64 20 31 |rowse to|ol.add 1|
|000018a0| 20 74 6f 20 78 0d 65 6e | 64 20 72 65 70 65 61 74 | to x.en|d repeat|
|000018b0| 0d 63 6c 6f 73 65 20 66 | 69 6c 65 20 74 68 65 46 |.close f|ile theF|
|000018c0| 69 6c 65 0d 0d 72 65 70 | 65 61 74 20 77 69 74 68 |ile..rep|eat with|
|000018d0| 20 79 20 3d 20 31 20 74 | 6f 20 74 68 65 20 6e 75 | y = 1 t|o the nu|
|000018e0| 6d 62 65 72 20 6f 66 20 | 69 74 65 6d 73 20 6f 66 |mber of |items of|
|000018f0| 20 66 6c 64 4c 69 73 74 | 0d 70 75 74 20 63 64 20 | fldList|.put cd |
|00001900| 66 6c 64 20 28 69 74 65 | 6d 20 79 20 6f 66 20 66 |fld (ite|m y of f|
|00001910| 6c 64 4c 69 73 74 29 20 | 69 6e 74 6f 20 74 68 65 |ldList) |into the|
|00001920| 54 65 78 74 0d 69 66 20 | 6d 61 6b 65 49 6e 64 65 |Text.if |makeInde|
|00001930| 6e 74 73 20 69 73 20 74 | 72 75 65 20 74 68 65 6e |nts is t|rue then|
|00001940| 20 70 75 74 20 6d 61 72 | 6b 49 6e 64 65 6e 74 73 | put mar|kIndents|
|00001950| 28 74 68 65 54 65 78 74 | 29 20 69 6e 74 6f 20 74 |(theText|) into t|
|00001960| 68 65 54 65 78 74 0d 72 | 65 70 65 61 74 20 77 68 |heText.r|epeat wh|
|00001970| 69 6c 65 20 6f 66 66 73 | 65 74 28 74 61 62 2c 74 |ile offs|et(tab,t|
|00001980| 68 65 54 65 78 74 29 20 | 3c 3e 20 30 0d 70 75 74 |heText) |<> 0.put|
|00001990| 20 22 20 22 20 69 6e 74 | 6f 20 63 68 61 72 20 6f | " " int|o char o|
|000019a0| 66 66 73 65 74 28 74 61 | 62 2c 74 68 65 54 65 78 |ffset(ta|b,theTex|
|000019b0| 74 29 20 6f 66 20 74 68 | 65 54 65 78 74 0d 65 6e |t) of th|eText.en|
|000019c0| 64 20 72 65 70 65 61 74 | 0d 6c 6f 63 6b 20 73 63 |d repeat|.lock sc|
|000019d0| 72 65 65 6e 0d 73 65 74 | 20 6e 75 6d 62 65 72 46 |reen.set| numberF|
|000019e0| 6f 72 6d 61 74 20 74 6f | 20 22 30 22 0d 70 75 74 |ormat to| "0".put|
|000019f0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|00001a00| 68 61 72 73 20 6f 66 20 | 74 68 65 54 65 78 74 20 |hars of |theText |
|00001a10| 69 6e 74 6f 20 64 69 76 | 54 6f 70 0d 72 65 70 65 |into div|Top.repe|
|00001a20| 61 74 0d 70 75 74 20 74 | 68 65 20 6e 75 6d 62 65 |at.put t|he numbe|
|00001a30| 72 20 6f 66 20 63 68 61 | 72 73 20 6f 66 20 74 68 |r of cha|rs of th|
|00001a40| 65 54 65 78 74 20 69 6e | 74 6f 20 74 6f 74 43 68 |eText in|to totCh|
|00001a50| 61 72 73 0d 69 66 20 74 | 6f 74 43 68 61 72 73 20 |ars.if t|otChars |
|00001a60| 3e 20 31 30 30 30 20 74 | 68 65 6e 0d 70 75 74 20 |> 1000 t|hen.put |
|00001a70| 22 50 72 65 70 61 72 69 | 6e 67 20 74 65 78 74 20 |"Prepari|ng text |
|00001a80| 73 65 63 74 69 6f 6e 20 | 22 20 26 20 79 20 26 20 |section |" & y & |
|00001a90| 22 20 6f 66 20 22 20 26 | 20 74 68 65 20 6e 75 6d |" of " &| the num|
|00001aa0| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 6f 66 20 |ber of i|tems of |
|00001ab0| 66 6c 64 4c 69 73 74 20 | 26 20 22 2e 20 22 20 26 |fldList |& ". " &|
|00001ac0| 20 31 30 30 20 2d 20 28 | 28 74 6f 74 43 68 61 72 | 100 - (|(totChar|
|00001ad0| 73 2f 64 69 76 54 6f 70 | 29 29 20 2a 20 31 30 30 |s/divTop|)) * 100|
|00001ae0| 20 26 20 22 25 20 63 6f | 6d 70 6c 65 74 65 2e 22 | & "% co|mplete."|
|00001af0| 0d 70 75 74 20 63 68 61 | 72 20 31 20 74 6f 20 31 |.put cha|r 1 to 1|
|00001b00| 30 30 30 20 6f 66 20 74 | 68 65 54 65 78 74 20 69 |000 of t|heText i|
|00001b10| 6e 74 6f 20 73 74 72 69 | 70 54 65 78 74 0d 69 66 |nto stri|pText.if|
|00001b20| 20 64 65 52 65 74 75 72 | 6e 20 69 73 20 6e 6f 74 | deRetur|n is not|
|00001b30| 20 74 72 75 65 20 74 68 | 65 6e 0d 69 66 20 64 65 | true th|en.if de|
|00001b40| 44 61 73 68 20 69 73 20 | 74 72 75 65 20 74 68 65 |Dash is |true the|
|00001b50| 6e 0d 70 75 74 20 63 6c | 65 61 6e 44 61 73 68 65 |n.put cl|eanDashe|
|00001b60| 73 28 73 74 72 69 70 54 | 65 78 74 29 20 69 6e 74 |s(stripT|ext) int|
|00001b70| 6f 20 73 74 72 69 70 54 | 65 78 74 0d 65 6e 64 20 |o stripT|ext.end |
|00001b80| 69 66 0d 70 75 74 20 6d | 61 72 6b 52 65 74 75 72 |if.put m|arkRetur|
|00001b90| 6e 73 28 73 74 72 69 70 | 54 65 78 74 29 20 69 6e |ns(strip|Text) in|
|00001ba0| 74 6f 20 73 74 72 69 70 | 54 65 78 74 0d 70 75 74 |to strip|Text.put|
|00001bb0| 20 66 61 73 74 53 74 72 | 69 70 53 70 61 63 65 73 | fastStr|ipSpaces|
|00001bc0| 28 73 74 72 69 70 54 65 | 78 74 29 20 61 66 74 65 |(stripTe|xt) afte|
|00001bd0| 72 20 63 6c 65 61 6e 54 | 65 78 74 0d 65 6c 73 65 |r cleanT|ext.else|
|00001be0| 0d 70 75 74 20 72 65 74 | 75 72 6e 73 4f 75 74 28 |.put ret|urnsOut(|
|00001bf0| 73 74 72 69 70 54 65 78 | 74 29 20 69 6e 74 6f 20 |stripTex|t) into |
|00001c00| 73 74 72 69 70 54 65 78 | 74 0d 69 66 20 64 65 44 |stripTex|t.if deD|
|00001c10| 61 73 68 20 69 73 20 74 | 72 75 65 20 74 68 65 6e |ash is t|rue then|
|00001c20| 0d 70 75 74 20 63 6c 65 | 61 6e 44 61 73 68 65 73 |.put cle|anDashes|
|00001c30| 28 73 74 72 69 70 54 65 | 78 74 29 20 69 6e 74 6f |(stripTe|xt) into|
|00001c40| 20 73 74 72 69 70 54 65 | 78 74 0d 65 6e 64 20 69 | stripTe|xt.end i|
|00001c50| 66 0d 70 75 74 20 66 61 | 73 74 53 74 72 69 70 53 |f.put fa|stStripS|
|00001c60| 70 61 63 65 73 28 73 74 | 72 69 70 54 65 78 74 29 |paces(st|ripText)|
|00001c70| 20 61 66 74 65 72 20 63 | 6c 65 61 6e 54 65 78 74 | after c|leanText|
|00001c80| 0d 65 6e 64 20 69 66 0d | 64 65 6c 65 74 65 20 63 |.end if.|delete c|
|00001c90| 68 61 72 20 31 20 74 6f | 20 31 30 30 30 20 6f 66 |har 1 to| 1000 of|
|00001ca0| 20 74 68 65 54 65 78 74 | 0d 65 6c 73 65 0d 70 75 | theText|.else.pu|
|00001cb0| 74 20 63 68 61 72 20 31 | 20 74 6f 20 28 74 68 65 |t char 1| to (the|
|00001cc0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 73 | number |of chars|
|00001cd0| 20 6f 66 20 74 68 65 54 | 65 78 74 29 20 6f 66 20 | of theT|ext) of |
|00001ce0| 74 68 65 54 65 78 74 20 | 69 6e 74 6f 20 73 74 72 |theText |into str|
|00001cf0| 69 70 54 65 78 74 0d 69 | 66 20 64 65 52 65 74 75 |ipText.i|f deRetu|
|00001d00| 72 6e 20 69 73 20 6e 6f | 74 20 74 72 75 65 20 74 |rn is no|t true t|
|00001d10| 68 65 6e 0d 69 66 20 64 | 65 44 61 73 68 20 69 73 |hen.if d|eDash is|
|00001d20| 20 74 72 75 65 20 74 68 | 65 6e 0d 70 75 74 20 63 | true th|en.put c|
|00001d30| 6c 65 61 6e 44 61 73 68 | 65 73 28 73 74 72 69 70 |leanDash|es(strip|
|00001d40| 54 65 78 74 29 20 69 6e | 74 6f 20 73 74 72 69 70 |Text) in|to strip|
|00001d50| 54 65 78 74 0d 65 6e 64 | 20 69 66 0d 70 75 74 20 |Text.end| if.put |
|00001d60| 6d 61 72 6b 52 65 74 75 | 72 6e 73 28 73 74 72 69 |markRetu|rns(stri|
|00001d70| 70 54 65 78 74 29 20 69 | 6e 74 6f 20 73 74 72 69 |pText) i|nto stri|
|00001d80| 70 54 65 78 74 0d 70 75 | 74 20 66 61 73 74 53 74 |pText.pu|t fastSt|
|00001d90| 72 69 70 53 70 61 63 65 | 73 28 73 74 72 69 70 54 |ripSpace|s(stripT|
|00001da0| 65 78 74 29 20 61 66 74 | 65 72 20 63 6c 65 61 6e |ext) aft|er clean|
|00001db0| 54 65 78 74 0d 65 6c 73 | 65 0d 70 75 74 20 72 65 |Text.els|e.put re|
|00001dc0| 74 75 72 6e 73 4f 75 74 | 28 73 74 72 69 70 54 65 |turnsOut|(stripTe|
|00001dd0| 78 74 29 20 69 6e 74 6f | 20 73 74 72 69 70 54 65 |xt) into| stripTe|
|00001de0| 78 74 0d 69 66 20 64 65 | 44 61 73 68 20 69 73 20 |xt.if de|Dash is |
|00001df0| 74 72 75 65 20 74 68 65 | 6e 0d 70 75 74 20 63 6c |true the|n.put cl|
|00001e00| 65 61 6e 44 61 73 68 65 | 73 28 73 74 72 69 70 54 |eanDashe|s(stripT|
|00001e10| 65 78 74 29 20 69 6e 74 | 6f 20 73 74 72 69 70 54 |ext) int|o stripT|
|00001e20| 65 78 74 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 66 |ext.end |if.put f|
|00001e30| 61 73 74 53 74 72 69 70 | 53 70 61 63 65 73 28 73 |astStrip|Spaces(s|
|00001e40| 74 72 69 70 54 65 78 74 | 29 20 61 66 74 65 72 20 |tripText|) after |
|00001e50| 63 6c 65 61 6e 54 65 78 | 74 0d 65 6e 64 20 69 66 |cleanTex|t.end if|
|00001e60| 0d 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.exit re|peat.end|
|00001e70| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 | if.end |repeat.p|
|00001e80| 75 74 20 63 6c 65 61 6e | 54 65 78 74 20 69 6e 74 |ut clean|Text int|
|00001e90| 6f 20 63 64 20 66 6c 64 | 20 28 69 74 65 6d 20 79 |o cd fld| (item y|
|00001ea0| 20 6f 66 20 66 6c 64 4c | 69 73 74 29 0d 70 75 74 | of fldL|ist).put|
|00001eb0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 63 6c 65 61 | empty i|nto clea|
|00001ec0| 6e 54 65 78 74 0d 65 6e | 64 20 72 65 70 65 61 74 |nText.en|d repeat|
|00001ed0| 0d 73 65 74 20 6e 75 6d | 62 65 72 46 6f 72 6d 61 |.set num|berForma|
|00001ee0| 74 20 74 6f 20 22 30 22 | 0d 70 75 74 20 65 6d 70 |t to "0"|.put emp|
|00001ef0| 74 79 20 69 6e 74 6f 20 | 6d 73 67 0d 70 6f 70 20 |ty into |msg.pop |
|00001f00| 63 64 0d 63 6c 65 61 6e | 54 68 65 54 65 78 74 0d |cd.clean|TheText.|
|00001f10| 64 6f 55 70 64 61 74 65 | 20 74 68 69 73 43 68 61 |doUpdate| thisCha|
|00001f20| 70 74 65 72 2c 73 74 61 | 72 74 43 64 49 64 0d 73 |pter,sta|rtCdId.s|
|00001f30| 65 74 20 74 68 65 20 76 | 69 73 69 62 6c 65 20 6f |et the v|isible o|
|00001f40| 66 20 6d 73 67 20 74 6f | 20 6d 56 69 73 0d 75 6e |f msg to| mVis.un|
|00001f50| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 65 6e 64 20 |lock scr|een.end |
|00001f60| 69 6d 70 6f 72 74 54 65 | 78 74 0d 0d 0d 6f 6e 20 |importTe|xt...on |
|00001f70| 64 6f 55 70 64 61 74 65 | 20 74 68 69 73 43 68 61 |doUpdate| thisCha|
|00001f80| 70 74 65 72 2c 73 74 61 | 72 74 43 64 49 64 0d 67 |pter,sta|rtCdId.g|
|00001f90| 6c 6f 62 61 6c 20 74 68 | 65 43 6f 72 6e 65 72 2c |lobal th|eCorner,|
|00001fa0| 74 68 65 54 6f 6f 6c 2c | 66 69 72 73 74 54 68 72 |theTool,|firstThr|
|00001fb0| 75 2c 65 6e 64 50 61 67 | 65 2c 66 6c 64 4c 69 73 |u,endPag|e,fldLis|
|00001fc0| 74 0d 75 6e 6d 61 72 6b | 20 61 6c 6c 20 63 64 73 |t.unmark| all cds|
|00001fd0| 0d 6d 61 72 6b 20 63 64 | 73 20 77 68 65 72 65 20 |.mark cd|s where |
|00001fe0| 66 6c 64 20 22 41 72 74 | 69 63 6c 65 4e 61 6d 65 |fld "Art|icleName|
|00001ff0| 22 20 3d 20 74 68 69 73 | 43 68 61 70 74 65 72 0d |" = this|Chapter.|
|00002000| 70 75 74 20 74 68 65 20 | 74 65 78 74 48 65 69 67 |put the |textHeig|
|00002010| 68 74 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 |ht of fl|d "Body"|
|00002020| 20 69 6e 74 6f 20 74 68 | 65 4c 65 61 64 0d 70 75 | into th|eLead.pu|
|00002030| 74 20 74 68 65 20 74 65 | 78 74 46 6f 6e 74 20 6f |t the te|xtFont o|
|00002040| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 20 69 6e 74 |f fld "B|ody" int|
|00002050| 6f 20 74 68 65 46 6f 6e | 74 0d 70 75 74 20 74 68 |o theFon|t.put th|
|00002060| 65 20 74 65 78 74 53 69 | 7a 65 20 6f 66 20 66 6c |e textSi|ze of fl|
|00002070| 64 20 22 42 6f 64 79 22 | 20 69 6e 74 6f 20 74 68 |d "Body"| into th|
|00002080| 65 53 69 7a 65 0d 69 66 | 20 74 68 65 4c 65 61 64 |eSize.if| theLead|
|00002090| 20 69 73 20 31 38 20 74 | 68 65 6e 20 70 75 74 20 | is 18 t|hen put |
|000020a0| 31 34 20 69 6e 74 6f 20 | 74 68 65 54 6f 74 61 6c |14 into |theTotal|
|000020b0| 4c 69 6e 65 73 0d 69 66 | 20 74 68 65 4c 65 61 64 |Lines.if| theLead|
|000020c0| 20 69 73 20 31 36 20 74 | 68 65 6e 20 70 75 74 20 | is 16 t|hen put |
|000020d0| 31 36 20 69 6e 74 6f 20 | 74 68 65 54 6f 74 61 6c |16 into |theTotal|
|000020e0| 4c 69 6e 65 73 0d 69 66 | 20 74 68 65 4c 65 61 64 |Lines.if| theLead|
|000020f0| 20 69 73 20 31 34 20 74 | 68 65 6e 20 70 75 74 20 | is 14 t|hen put |
|00002100| 31 38 20 69 6e 74 6f 20 | 74 68 65 54 6f 74 61 6c |18 into |theTotal|
|00002110| 4c 69 6e 65 73 0d 69 66 | 20 74 68 65 4c 65 61 64 |Lines.if| theLead|
|00002120| 20 69 73 20 31 32 20 74 | 68 65 6e 20 70 75 74 20 | is 12 t|hen put |
|00002130| 32 30 20 69 6e 74 6f 20 | 74 68 65 54 6f 74 61 6c |20 into |theTotal|
|00002140| 4c 69 6e 65 73 0d 70 75 | 74 20 74 68 65 20 76 69 |Lines.pu|t the vi|
|00002150| 73 69 62 6c 65 20 6f 66 | 20 6d 73 67 20 69 6e 74 |sible of| msg int|
|00002160| 6f 20 6d 56 69 73 0d 69 | 66 20 74 68 65 20 68 65 |o mVis.i|f the he|
|00002170| 69 67 68 74 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |ight of |fld "Bod|
|00002180| 79 22 20 3c 20 32 34 30 | 20 74 68 65 6e 20 73 75 |y" < 240| then su|
|00002190| 62 74 72 61 63 74 20 32 | 20 66 72 6f 6d 20 74 68 |btract 2| from th|
|000021a0| 65 54 6f 74 61 6c 4c 69 | 6e 65 73 0d 6c 6f 63 6b |eTotalLi|nes.lock|
|000021b0| 20 73 63 72 65 65 6e 0d | 70 75 74 20 31 20 69 6e | screen.|put 1 in|
|000021c0| 74 6f 20 74 69 6d 65 73 | 54 68 72 75 0d 72 65 70 |to times|Thru.rep|
|000021d0| 65 61 74 20 77 69 74 68 | 20 78 20 3d 20 31 20 74 |eat with| x = 1 t|
|000021e0| 6f 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |o the nu|mber of |
|000021f0| 69 74 65 6d 73 20 6f 66 | 20 66 6c 64 4c 69 73 74 |items of| fldList|
|00002200| 0d 70 75 73 68 20 63 64 | 0d 67 6f 20 63 64 20 22 |.push cd|.go cd "|
|00002210| 54 61 62 6c 65 20 6f 66 | 20 43 6f 6e 74 65 6e 74 |Table of| Content|
|00002220| 73 22 0d 70 75 74 20 63 | 64 20 66 6c 64 20 28 69 |s".put c|d fld (i|
|00002230| 74 65 6d 20 31 20 6f 66 | 20 66 6c 64 4c 69 73 74 |tem 1 of| fldList|
|00002240| 29 20 69 6e 74 6f 20 61 | 6c 6c 54 65 78 74 0d 64 |) into a|llText.d|
|00002250| 65 6c 65 74 65 20 63 64 | 20 66 6c 64 20 28 69 74 |elete cd| fld (it|
|00002260| 65 6d 20 31 20 6f 66 20 | 66 6c 64 4c 69 73 74 29 |em 1 of |fldList)|
|00002270| 0d 70 6f 70 20 63 64 0d | 64 65 6c 65 74 65 20 69 |.pop cd.|delete i|
|00002280| 74 65 6d 20 31 20 6f 66 | 20 66 6c 64 4c 69 73 74 |tem 1 of| fldList|
|00002290| 0d 70 75 74 20 22 4d 61 | 72 6b 69 6e 67 20 74 65 |.put "Ma|rking te|
|000022a0| 78 74 20 28 74 68 69 73 | 20 6d 61 79 20 74 61 6b |xt (this| may tak|
|000022b0| 65 20 61 20 66 65 77 20 | 6d 6f 6d 65 6e 74 73 29 |e a few |moments)|
|000022c0| 2e 22 0d 73 65 74 20 74 | 68 65 20 76 69 73 69 62 |.".set t|he visib|
|000022d0| 6c 65 20 6f 66 20 6d 73 | 67 20 74 6f 20 74 72 75 |le of ms|g to tru|
|000022e0| 65 0d 69 66 20 74 69 6d | 65 73 54 68 72 75 20 3e |e.if tim|esThru >|
|000022f0| 20 31 20 74 68 65 6e 0d | 67 6f 20 63 64 20 69 64 | 1 then.|go cd id|
|00002300| 20 65 6e 64 50 61 67 65 | 0d 70 75 74 20 66 6c 64 | endPage|.put fld|
|00002310| 20 22 42 6f 64 79 22 20 | 69 6e 74 6f 20 6f 6c 64 | "Body" |into old|
|00002320| 54 65 78 74 0d 70 75 74 | 20 6f 6c 64 54 65 78 74 |Text.put| oldText|
|00002330| 20 62 65 66 6f 72 65 20 | 61 6c 6c 54 65 78 74 0d | before |allText.|
|00002340| 70 75 74 20 72 65 74 75 | 72 6e 73 4f 75 74 28 61 |put retu|rnsOut(a|
|00002350| 6c 6c 54 65 78 74 29 20 | 69 6e 74 6f 20 61 6c 6c |llText) |into all|
|00002360| 54 65 78 74 0d 70 75 74 | 20 66 61 73 74 53 74 72 |Text.put| fastStr|
|00002370| 69 70 53 70 61 63 65 73 | 28 61 6c 6c 54 65 78 74 |ipSpaces|(allText|
|00002380| 29 20 69 6e 74 6f 20 61 | 6c 6c 54 65 78 74 0d 70 |) into a|llText.p|
|00002390| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 66 6c |ut empty| into fl|
|000023a0| 64 20 22 42 6f 64 79 22 | 0d 65 6c 73 65 0d 67 6f |d "Body"|.else.go|
|000023b0| 20 74 6f 20 66 69 72 73 | 74 20 6d 61 72 6b 65 64 | to firs|t marked|
|000023c0| 20 63 64 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 72 | cd.end |if.put r|
|000023d0| 65 74 75 72 6e 73 4f 75 | 74 28 61 6c 6c 54 65 78 |eturnsOu|t(allTex|
|000023e0| 74 29 20 69 6e 74 6f 20 | 72 65 46 6c 6f 77 4f 75 |t) into |reFlowOu|
|000023f0| 74 0d 70 75 74 20 66 6f | 72 6d 61 74 54 65 78 74 |t.put fo|rmatText|
|00002400| 28 72 65 46 6c 6f 77 4f | 75 74 29 20 69 6e 74 6f |(reFlowO|ut) into|
|00002410| 20 72 65 46 6c 6f 77 4f | 75 74 0d 70 75 74 20 72 | reFlowO|ut.put r|
|00002420| 65 74 75 72 6e 73 49 6e | 28 72 65 66 6c 6f 77 4f |eturnsIn|(reflowO|
|00002430| 75 74 2c 74 68 65 46 6f | 6e 74 2c 74 68 65 53 69 |ut,theFo|nt,theSi|
|00002440| 7a 65 29 20 69 6e 74 6f | 20 61 6c 6c 54 65 78 74 |ze) into| allText|
|00002450| 0d 72 65 70 65 61 74 0d | 69 66 20 74 68 65 20 6e |.repeat.|if the n|
|00002460| 75 6d 62 65 72 20 6f 66 | 20 62 74 6e 73 20 ad 20 |umber of| btns . |
|00002470| 30 20 74 68 65 6e 0d 72 | 65 70 65 61 74 20 77 69 |0 then.r|epeat wi|
|00002480| 74 68 20 78 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th x = 1| to the |
|00002490| 6e 75 6d 62 65 72 20 6f | 66 20 62 74 6e 73 0d 70 |number o|f btns.p|
|000024a0| 75 74 20 74 68 65 20 73 | 68 6f 72 74 20 6e 61 6d |ut the s|hort nam|
|000024b0| 65 20 6f 66 20 62 74 6e | 20 78 20 26 20 22 2c 22 |e of btn| x & ","|
|000024c0| 20 69 6e 74 6f 20 62 74 | 6e 4c 69 73 74 0d 65 6e | into bt|nList.en|
|000024d0| 64 20 72 65 70 65 61 74 | 0d 69 66 20 22 50 69 63 |d repeat|.if "Pic|
|000024e0| 74 75 72 65 22 20 69 73 | 20 69 6e 20 62 74 6e 4c |ture" is| in btnL|
|000024f0| 69 73 74 20 74 68 65 6e | 0d 73 65 74 20 74 68 65 |ist then|.set the|
|00002500| 20 73 68 6f 77 4e 61 6d | 65 20 6f 66 20 62 74 6e | showNam|e of btn|
|00002510| 20 22 50 69 63 74 75 72 | 65 22 20 74 6f 20 66 61 | "Pictur|e" to fa|
|00002520| 6c 73 65 0d 73 65 74 20 | 74 68 65 20 73 74 79 6c |lse.set |the styl|
|00002530| 65 20 6f 66 20 62 74 6e | 20 22 50 69 63 74 75 72 |e of btn| "Pictur|
|00002540| 65 22 20 74 6f 20 22 74 | 72 61 6e 73 70 61 72 65 |e" to "t|ranspare|
|00002550| 6e 74 22 0d 70 75 74 20 | 74 68 65 20 73 68 6f 72 |nt".put |the shor|
|00002560| 74 20 69 64 20 6f 66 20 | 62 74 6e 20 22 50 69 63 |t id of |btn "Pic|
|00002570| 74 75 72 65 22 20 69 6e | 74 6f 20 62 74 6e 49 64 |ture" in|to btnId|
|00002580| 0d 70 75 74 20 64 6f 52 | 75 6e 41 72 6f 75 6e 64 |.put doR|unAround|
|00002590| 28 61 6c 6c 54 65 78 74 | 2c 62 74 6e 49 64 2c 74 |(allText|,btnId,t|
|000025a0| 68 65 46 6f 6e 74 2c 74 | 68 65 53 69 7a 65 2c 74 |heFont,t|heSize,t|
|000025b0| 68 65 54 6f 74 61 6c 4c | 69 6e 65 73 2c 74 68 65 |heTotalL|ines,the|
|000025c0| 4c 65 61 64 29 20 69 6e | 74 6f 20 61 6c 6c 54 65 |Lead) in|to allTe|
|000025d0| 78 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |xt.end i|f.end if|
|000025e0| 0d 70 75 74 20 6c 69 6e | 65 20 31 20 74 6f 20 74 |.put lin|e 1 to t|
|000025f0| 68 65 54 6f 74 61 6c 4c | 69 6e 65 73 20 6f 66 20 |heTotalL|ines of |
|00002600| 61 6c 6c 54 65 78 74 20 | 69 6e 74 6f 20 66 6c 64 |allText |into fld|
|00002610| 20 22 42 6f 64 79 22 0d | 73 65 74 20 74 68 65 20 | "Body".|set the |
|00002620| 73 74 79 6c 65 20 6f 66 | 20 66 6c 64 20 22 42 6f |style of| fld "Bo|
|00002630| 64 79 22 20 74 6f 20 22 | 54 72 61 6e 73 70 61 72 |dy" to "|Transpar|
|00002640| 65 6e 74 22 0d 64 65 6c | 65 74 65 20 6c 69 6e 65 |ent".del|ete line|
|00002650| 20 31 20 74 6f 20 74 68 | 65 54 6f 74 61 6c 4c 69 | 1 to th|eTotalLi|
|00002660| 6e 65 73 20 6f 66 20 61 | 6c 6c 54 65 78 74 0d 69 |nes of a|llText.i|
|00002670| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00002680| 6c 69 6e 65 73 20 6f 66 | 20 61 6c 6c 54 65 78 74 |lines of| allText|
|00002690| 20 3c 3d 20 30 20 74 68 | 65 6e 20 65 78 69 74 20 | <= 0 th|en exit |
|000026a0| 72 65 70 65 61 74 0d 72 | 65 70 65 61 74 0d 67 6f |repeat.r|epeat.go|
|000026b0| 20 6e 65 78 74 20 63 64 | 0d 69 66 20 66 6c 64 20 | next cd|.if fld |
|000026c0| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 69 73 |"Article|Name" is|
|000026d0| 20 6e 6f 74 20 74 68 69 | 73 43 68 61 70 74 65 72 | not thi|sChapter|
|000026e0| 20 6f 72 20 6e 6f 74 20 | 74 68 65 20 68 69 67 68 | or not |the high|
|000026f0| 6c 69 67 68 74 20 6f 66 | 20 62 67 20 62 74 6e 20 |light of| bg btn |
|00002700| 22 4c 6f 63 6b 50 61 67 | 65 22 20 74 68 65 6e 20 |"LockPag|e" then |
|00002710| 65 78 69 74 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |exit rep|eat.end |
|00002720| 72 65 70 65 61 74 0d 69 | 66 20 66 6c 64 20 22 41 |repeat.i|f fld "A|
|00002730| 72 74 69 63 6c 65 4e 61 | 6d 65 22 20 69 73 20 6e |rticleNa|me" is n|
|00002740| 6f 74 20 74 68 69 73 43 | 68 61 70 74 65 72 20 74 |ot thisC|hapter t|
|00002750| 68 65 6e 0d 69 66 20 74 | 68 65 20 6e 75 6d 62 65 |hen.if t|he numbe|
|00002760| 72 20 6f 66 20 74 68 69 | 73 20 63 64 20 3d 20 31 |r of thi|s cd = 1|
|00002770| 20 74 68 65 6e 0d 67 6f | 20 6c 61 73 74 20 63 64 | then.go| last cd|
|00002780| 0d 65 6c 73 65 0d 67 6f | 20 63 64 20 28 74 68 65 |.else.go| cd (the|
|00002790| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 69 73 20 | number |of this |
|000027a0| 63 64 20 2d 20 31 29 0d | 65 6e 64 20 69 66 0d 64 |cd - 1).|end if.d|
|000027b0| 6f 4d 65 6e 75 20 22 4e | 65 77 20 43 61 72 64 22 |oMenu "N|ew Card"|
|000027c0| 0d 70 75 74 20 74 68 69 | 73 43 68 61 70 74 65 72 |.put thi|sChapter|
|000027d0| 20 69 6e 74 6f 20 66 6c | 64 20 22 41 72 74 69 63 | into fl|d "Artic|
|000027e0| 6c 65 4e 61 6d 65 22 0d | 65 6e 64 20 69 66 0d 70 |leName".|end if.p|
|000027f0| 75 74 20 74 68 65 20 73 | 68 6f 72 74 20 69 64 20 |ut the s|hort id |
|00002800| 6f 66 20 74 68 69 73 20 | 63 64 20 69 6e 74 6f 20 |of this |cd into |
|00002810| 65 6e 64 50 61 67 65 0d | 70 75 74 20 22 57 72 69 |endPage.|put "Wri|
|00002820| 74 69 6e 67 20 70 61 67 | 65 22 20 26 26 20 74 68 |ting pag|e" && th|
|00002830| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 69 73 |e number| of this|
|00002840| 20 63 64 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 | cd.end |repeat.i|
|00002850| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00002860| 69 74 65 6d 73 20 6f 66 | 20 66 6c 64 4c 69 73 74 |items of| fldList|
|00002870| 20 3c 20 31 20 74 68 65 | 6e 0d 6d 61 72 6b 20 63 | < 1 the|n.mark c|
|00002880| 64 73 20 77 68 65 72 65 | 20 66 6c 64 20 22 41 72 |ds where| fld "Ar|
|00002890| 74 69 63 6c 65 4e 61 6d | 65 22 20 3d 20 74 68 69 |ticleNam|e" = thi|
|000028a0| 73 43 68 61 70 74 65 72 | 0d 67 6f 20 66 69 72 73 |sChapter|.go firs|
|000028b0| 74 20 6d 61 72 6b 65 64 | 20 63 64 0d 72 65 70 65 |t marked| cd.repe|
|000028c0| 61 74 20 77 69 74 68 20 | 78 20 3d 20 31 20 74 6f |at with |x = 1 to|
|000028d0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|000028e0| 64 73 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |ds of th|is stack|
|000028f0| 0d 69 66 20 66 6c 64 20 | 22 41 72 74 69 63 6c 65 |.if fld |"Article|
|00002900| 4e 61 6d 65 22 20 69 73 | 20 6e 6f 74 20 74 68 69 |Name" is| not thi|
|00002910| 73 43 68 61 70 74 65 72 | 20 74 68 65 6e 20 65 78 |sChapter| then ex|
|00002920| 69 74 20 72 65 70 65 61 | 74 0d 69 66 20 66 6c 64 |it repea|t.if fld|
|00002930| 20 22 42 6f 64 79 22 20 | 69 73 20 65 6d 70 74 79 | "Body" |is empty|
|00002940| 20 61 6e 64 20 6e 6f 74 | 20 74 68 65 20 68 69 67 | and not| the hig|
|00002950| 68 6c 69 67 68 74 20 6f | 66 20 62 67 20 62 74 6e |hlight o|f bg btn|
|00002960| 20 22 4c 6f 63 6b 50 61 | 67 65 22 20 74 68 65 6e | "LockPa|ge" then|
|00002970| 0d 64 6f 4d 65 6e 75 20 | 22 44 65 6c 65 74 65 20 |.doMenu |"Delete |
|00002980| 43 61 72 64 22 0d 65 6e | 64 20 69 66 0d 67 6f 20 |Card".en|d if.go |
|00002990| 6e 65 78 74 20 63 64 0d | 65 6e 64 20 72 65 70 65 |next cd.|end repe|
|000029a0| 61 74 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |at.if th|ere is a|
|000029b0| 20 63 64 20 69 64 20 73 | 74 61 72 74 43 64 49 64 | cd id s|tartCdId|
|000029c0| 20 74 68 65 6e 20 67 6f | 20 63 64 20 69 64 20 73 | then go| cd id s|
|000029d0| 74 61 72 74 43 64 49 64 | 0d 65 6c 73 65 20 67 6f |tartCdId|.else go|
|000029e0| 20 66 69 72 73 74 20 6d | 61 72 6b 65 64 20 63 64 | first m|arked cd|
|000029f0| 0d 73 65 74 20 74 68 65 | 20 76 69 73 69 62 6c 65 |.set the| visible|
|00002a00| 20 6f 66 20 6d 73 67 20 | 74 6f 20 6d 56 69 73 0d | of msg |to mVis.|
|00002a10| 73 65 74 20 74 68 65 20 | 63 68 65 63 6b 4d 61 72 |set the |checkMar|
|00002a20| 6b 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 31 31 |k of men|uItem 11|
|00002a30| 20 6f 66 20 6d 65 6e 75 | 20 22 4c 61 79 6f 75 74 | of menu| "Layout|
|00002a40| 22 20 74 6f 20 66 61 6c | 73 65 0d 70 75 74 20 65 |" to fal|se.put e|
|00002a50| 6d 70 74 79 20 69 6e 74 | 6f 20 74 68 65 43 6f 72 |mpty int|o theCor|
|00002a60| 6e 65 72 0d 69 66 20 74 | 68 65 54 6f 6f 6c 20 69 |ner.if t|heTool i|
|00002a70| 73 20 22 50 69 63 74 75 | 72 65 54 6f 6f 6c 22 20 |s "Pictu|reTool" |
|00002a80| 74 68 65 6e 20 62 75 74 | 74 6f 6e 31 0d 73 65 6e |then but|ton1.sen|
|00002a90| 64 20 6f 70 65 6e 43 61 | 72 64 20 74 6f 20 74 68 |d openCa|rd to th|
|00002aa0| 69 73 20 62 67 0d 65 6e | 64 20 69 66 0d 61 64 64 |is bg.en|d if.add|
|00002ab0| 20 31 20 74 6f 20 74 69 | 6d 65 73 54 68 72 75 0d | 1 to ti|mesThru.|
|00002ac0| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 64 |end repe|at.end d|
|00002ad0| 6f 55 70 64 61 74 65 0d | 0d 66 75 6e 63 74 69 6f |oUpdate.|.functio|
|00002ae0| 6e 20 64 6f 52 75 6e 41 | 72 6f 75 6e 64 20 74 68 |n doRunA|round th|
|00002af0| 65 54 65 78 74 2c 72 75 | 6e 41 72 6f 75 6e 64 42 |eText,ru|nAroundB|
|00002b00| 74 6e 2c 74 68 65 46 6f | 6e 74 2c 74 68 65 53 69 |tn,theFo|nt,theSi|
|00002b10| 7a 65 2c 74 68 65 54 6f | 74 61 6c 4c 69 6e 65 73 |ze,theTo|talLines|
|00002b20| 2c 74 68 65 4c 65 61 64 | 0d 70 75 74 20 74 68 65 |,theLead|.put the|
|00002b30| 54 65 78 74 20 69 6e 74 | 6f 20 72 65 46 6c 6f 77 |Text int|o reFlow|
|00002b40| 65 64 54 65 78 74 0d 70 | 75 74 20 30 20 69 6e 74 |edText.p|ut 0 int|
|00002b50| 6f 20 66 72 6f 6d 54 68 | 65 54 6f 70 0d 70 75 74 |o fromTh|eTop.put|
|00002b60| 20 22 52 65 66 6c 6f 77 | 69 6e 67 20 72 75 6e 2d | "Reflow|ing run-|
|00002b70| 61 72 6f 75 6e 64 2e 22 | 0d 70 75 74 20 74 68 65 |around."|.put the|
|00002b80| 20 72 65 63 74 20 6f 66 | 20 62 74 6e 20 69 64 20 | rect of| btn id |
|00002b90| 72 75 6e 41 72 6f 75 6e | 64 42 74 6e 20 69 6e 74 |runAroun|dBtn int|
|00002ba0| 6f 20 74 68 65 50 69 63 | 0d 70 75 74 20 74 68 65 |o thePic|.put the|
|00002bb0| 20 77 69 64 74 68 20 6f | 66 20 62 74 6e 20 69 64 | width o|f btn id|
|00002bc0| 20 72 75 6e 41 72 6f 75 | 6e 64 42 74 6e 20 69 6e | runArou|ndBtn in|
|00002bd0| 74 6f 20 74 68 65 52 75 | 6e 57 69 64 74 68 0d 69 |to theRu|nWidth.i|
|00002be0| 66 20 69 74 65 6d 20 32 | 20 6f 66 20 74 68 65 50 |f item 2| of theP|
|00002bf0| 69 63 20 3e 20 32 39 20 | 74 68 65 6e 0d 69 66 20 |ic > 29 |then.if |
|00002c00| 69 74 65 6d 20 32 20 6f | 66 20 74 68 65 50 69 63 |item 2 o|f thePic|
|00002c10| 20 3e 20 37 39 20 74 68 | 65 6e 0d 70 75 74 20 28 | > 79 th|en.put (|
|00002c20| 69 74 65 6d 20 32 20 6f | 66 20 74 68 65 50 69 63 |item 2 o|f thePic|
|00002c30| 29 20 2d 20 36 33 20 69 | 6e 74 6f 20 74 6f 70 4c |) - 63 i|nto topL|
|00002c40| 69 6e 65 73 0d 70 75 74 | 20 74 72 75 6e 63 28 74 |ines.put| trunc(t|
|00002c50| 6f 70 4c 69 6e 65 73 20 | 2f 20 74 68 65 4c 65 61 |opLines |/ theLea|
|00002c60| 64 29 20 69 6e 74 6f 20 | 66 72 6f 6d 54 68 65 54 |d) into |fromTheT|
|00002c70| 6f 70 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 28 69 |op.end i|f.put (i|
|00002c80| 74 65 6d 20 34 20 6f 66 | 20 74 68 65 50 69 63 29 |tem 4 of| thePic)|
|00002c90| 20 2d 20 35 36 20 69 6e | 74 6f 20 74 6f 74 48 69 | - 56 in|to totHi|
|00002ca0| 0d 70 75 74 20 28 74 6f | 74 48 69 20 2f 20 74 68 |.put (to|tHi / th|
|00002cb0| 65 4c 65 61 64 29 20 69 | 6e 74 6f 20 74 68 65 4c |eLead) i|nto theL|
|00002cc0| 69 6e 65 73 0d 69 66 20 | 74 72 75 6e 63 28 74 68 |ines.if |trunc(th|
|00002cd0| 65 4c 69 6e 65 73 29 20 | ad 20 74 68 65 4c 69 6e |eLines) |. theLin|
|00002ce0| 65 73 20 74 68 65 6e 20 | 61 64 64 20 31 20 74 6f |es then |add 1 to|
|00002cf0| 20 74 68 65 4c 69 6e 65 | 73 0d 70 75 74 20 74 72 | theLine|s.put tr|
|00002d00| 75 6e 63 28 74 68 65 4c | 69 6e 65 73 29 20 69 6e |unc(theL|ines) in|
|00002d10| 74 6f 20 74 6f 74 4c 69 | 6e 65 73 0d 69 66 20 74 |to totLi|nes.if t|
|00002d20| 6f 74 4c 69 6e 65 73 20 | 3e 20 74 68 65 54 6f 74 |otLines |> theTot|
|00002d30| 61 6c 4c 69 6e 65 73 20 | 74 68 65 6e 0d 70 75 74 |alLines |then.put|
|00002d40| 20 74 68 65 54 6f 74 61 | 6c 4c 69 6e 65 73 20 69 | theTota|lLines i|
|00002d50| 6e 74 6f 20 74 6f 74 4c | 69 6e 65 73 0d 65 6e 64 |nto totL|ines.end|
|00002d60| 20 69 66 0d 65 6c 73 65 | 0d 65 78 69 74 20 64 6f | if.else|.exit do|
|00002d70| 52 75 6e 41 72 6f 75 6e | 64 0d 65 6e 64 20 69 66 |RunAroun|d.end if|
|00002d80| 0d 70 75 74 20 69 74 65 | 6d 20 33 20 6f 66 20 74 |.put ite|m 3 of t|
|00002d90| 68 65 50 69 63 20 2d 20 | 39 35 20 69 6e 74 6f 20 |hePic - |95 into |
|00002da0| 74 6f 74 57 69 64 65 0d | 70 75 74 20 22 2e 33 33 |totWide.|put ".33|
|00002db0| 22 20 69 6e 74 6f 20 74 | 68 65 46 61 63 74 6f 72 |" into t|heFactor|
|00002dc0| 0d 69 66 20 74 68 65 46 | 6f 6e 74 20 69 73 20 22 |.if theF|ont is "|
|00002dd0| 48 65 6c 76 65 74 69 63 | 61 22 20 74 68 65 6e 20 |Helvetic|a" then |
|00002de0| 70 75 74 20 22 2e 33 33 | 35 22 20 69 6e 74 6f 20 |put ".33|5" into |
|00002df0| 74 68 65 46 61 63 74 6f | 72 0d 69 66 20 74 68 65 |theFacto|r.if the|
|00002e00| 46 6f 6e 74 20 69 73 20 | 22 4e 65 77 20 59 6f 72 |Font is |"New Yor|
|00002e10| 6b 22 20 74 68 65 6e 20 | 70 75 74 20 22 2e 32 35 |k" then |put ".25|
|00002e20| 33 22 20 69 6e 74 6f 20 | 74 68 65 46 61 63 74 6f |3" into |theFacto|
|00002e30| 72 0d 69 66 20 74 68 65 | 46 6f 6e 74 20 69 73 20 |r.if the|Font is |
|00002e40| 22 50 61 6c 61 74 69 6e | 6f 22 20 74 68 65 6e 20 |"Palatin|o" then |
|00002e50| 70 75 74 20 22 2e 33 34 | 22 20 69 6e 74 6f 20 74 |put ".34|" into t|
|00002e60| 68 65 46 61 63 74 6f 72 | 0d 69 66 20 74 68 65 46 |heFactor|.if theF|
|00002e70| 6f 6e 74 20 69 73 20 22 | 54 69 6d 65 73 22 20 74 |ont is "|Times" t|
|00002e80| 68 65 6e 20 70 75 74 20 | 22 2e 32 35 35 22 20 69 |hen put |".255" i|
|00002e90| 6e 74 6f 20 74 68 65 46 | 61 63 74 6f 72 0d 70 75 |nto theF|actor.pu|
|00002ea0| 74 20 31 20 69 6e 74 6f | 20 73 70 61 63 65 53 69 |t 1 into| spaceSi|
|00002eb0| 7a 65 0d 69 66 20 74 68 | 65 53 69 7a 65 20 3d 20 |ze.if th|eSize = |
|00002ec0| 31 30 20 74 68 65 6e 20 | 70 75 74 20 22 31 2e 34 |10 then |put "1.4|
|00002ed0| 35 22 20 69 6e 74 6f 20 | 73 70 61 63 65 53 69 7a |5" into |spaceSiz|
|00002ee0| 65 0d 69 66 20 74 68 65 | 53 69 7a 65 20 3d 20 31 |e.if the|Size = 1|
|00002ef0| 32 20 74 68 65 6e 20 70 | 75 74 20 22 31 2e 30 32 |2 then p|ut "1.02|
|00002f00| 22 20 69 6e 74 6f 20 73 | 70 61 63 65 53 69 7a 65 |" into s|paceSize|
|00002f10| 0d 69 66 20 74 68 65 53 | 69 7a 65 20 3d 20 31 36 |.if theS|ize = 16|
|00002f20| 20 74 68 65 6e 20 70 75 | 74 20 22 31 22 20 69 6e | then pu|t "1" in|
|00002f30| 74 6f 20 73 70 61 63 65 | 53 69 7a 65 0d 70 75 74 |to space|Size.put|
|00002f40| 20 74 72 75 6e 63 28 74 | 6f 74 57 69 64 65 20 2a | trunc(t|otWide *|
|00002f50| 20 74 68 65 46 61 63 74 | 6f 72 20 2a 20 73 70 61 | theFact|or * spa|
|00002f60| 63 65 53 69 7a 65 29 20 | 69 6e 74 6f 20 74 68 65 |ceSize) |into the|
|00002f70| 53 70 61 63 65 73 0d 69 | 66 20 74 68 65 53 70 61 |Spaces.i|f theSpa|
|00002f80| 63 65 73 20 3e 20 30 20 | 74 68 65 6e 0d 72 65 70 |ces > 0 |then.rep|
|00002f90| 65 61 74 20 77 69 74 68 | 20 78 20 3d 20 31 20 74 |eat with| x = 1 t|
|00002fa0| 6f 20 74 68 65 53 70 61 | 63 65 73 0d 70 75 74 20 |o theSpa|ces.put |
|00002fb0| 22 20 22 20 61 66 74 65 | 72 20 74 6f 74 53 70 61 |" " afte|r totSpa|
|00002fc0| 63 65 73 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 |ces.end |repeat.e|
|00002fd0| 6c 73 65 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |lse.put |"" into |
|00002fe0| 74 6f 74 53 70 61 63 65 | 73 0d 65 6e 64 20 69 66 |totSpace|s.end if|
|00002ff0| 0d 70 75 74 20 22 50 61 | 67 69 6e 61 74 69 6e 67 |.put "Pa|ginating|
|00003000| 20 74 65 78 74 2e 22 0d | 70 75 74 20 72 65 74 75 | text.".|put retu|
|00003010| 72 6e 73 4f 75 74 28 74 | 68 65 54 65 78 74 29 20 |rnsOut(t|heText) |
|00003020| 69 6e 74 6f 20 74 68 65 | 54 65 78 74 0d 70 75 74 |into the|Text.put|
|00003030| 20 66 6f 72 6d 61 74 54 | 65 78 74 28 74 68 65 54 | formatT|ext(theT|
|00003040| 65 78 74 29 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |ext) int|o theTex|
|00003050| 74 0d 69 66 20 66 72 6f | 6d 54 68 65 54 6f 70 20 |t.if fro|mTheTop |
|00003060| ad 20 30 20 74 68 65 6e | 0d 72 65 70 65 61 74 20 |. 0 then|.repeat |
|00003070| 77 69 74 68 20 7a 20 3d | 20 31 20 74 6f 20 66 72 |with z =| 1 to fr|
|00003080| 6f 6d 54 68 65 54 6f 70 | 0d 72 65 70 65 61 74 0d |omTheTop|.repeat.|
|00003090| 69 66 20 63 68 61 72 20 | 31 20 6f 66 20 6c 69 6e |if char |1 of lin|
|000030a0| 65 20 31 20 6f 66 20 74 | 68 65 54 65 78 74 20 69 |e 1 of t|heText i|
|000030b0| 73 20 22 20 22 20 74 68 | 65 6e 0d 64 65 6c 65 74 |s " " th|en.delet|
|000030c0| 65 20 63 68 61 72 20 31 | 20 6f 66 20 6c 69 6e 65 |e char 1| of line|
|000030d0| 20 31 20 6f 66 20 74 68 | 65 54 65 78 74 0d 65 6c | 1 of th|eText.el|
|000030e0| 73 65 0d 65 78 69 74 20 | 72 65 70 65 61 74 0d 65 |se.exit |repeat.e|
|000030f0| 6e 64 20 69 66 0d 65 6e | 64 20 72 65 70 65 61 74 |nd if.en|d repeat|
|00003100| 0d 70 75 74 20 77 6f 72 | 64 57 72 61 70 28 6c 69 |.put wor|dWrap(li|
|00003110| 6e 65 20 31 20 6f 66 20 | 74 68 65 54 65 78 74 2c |ne 1 of |theText,|
|00003120| 28 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 66 6c |(the wid|th of fl|
|00003130| 64 20 22 42 6f 64 79 22 | 20 2d 20 28 74 68 65 53 |d "Body"| - (theS|
|00003140| 69 7a 65 20 2b 20 31 30 | 29 29 2c 74 68 65 46 6f |ize + 10|)),theFo|
|00003150| 6e 74 2c 74 68 65 53 69 | 7a 65 2c 70 6c 61 69 6e |nt,theSi|ze,plain|
|00003160| 29 20 69 6e 74 6f 20 6c | 69 6e 65 20 7a 20 6f 66 |) into l|ine z of|
|00003170| 20 72 65 46 6c 6f 77 65 | 64 54 65 78 74 0d 64 65 | reFlowe|dText.de|
|00003180| 6c 65 74 65 20 63 68 61 | 72 20 31 20 74 6f 20 28 |lete cha|r 1 to (|
|00003190| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 68 |the numb|er of ch|
|000031a0| 61 72 73 20 6f 66 20 6c | 69 6e 65 20 7a 20 6f 66 |ars of l|ine z of|
|000031b0| 20 72 65 46 6c 6f 77 65 | 64 54 65 78 74 29 20 6f | reFlowe|dText) o|
|000031c0| 66 20 74 68 65 54 65 78 | 74 0d 69 66 20 63 68 61 |f theTex|t.if cha|
|000031d0| 72 20 31 20 6f 66 20 74 | 68 65 54 65 78 74 20 69 |r 1 of t|heText i|
|000031e0| 73 20 72 65 74 75 72 6e | 20 74 68 65 6e 20 64 65 |s return| then de|
|000031f0| 6c 65 74 65 20 63 68 61 | 72 20 31 20 6f 66 20 74 |lete cha|r 1 of t|
|00003200| 68 65 54 65 78 74 0d 65 | 6e 64 20 72 65 70 65 61 |heText.e|nd repea|
|00003210| 74 0d 65 6e 64 20 69 66 | 0d 69 66 20 69 74 65 6d |t.end if|.if item|
|00003220| 20 31 20 6f 66 20 74 68 | 65 50 69 63 20 3c 20 31 | 1 of th|ePic < 1|
|00003230| 32 30 20 74 68 65 6e 0d | 72 65 70 65 61 74 20 77 |20 then.|repeat w|
|00003240| 69 74 68 20 79 20 3d 20 | 28 31 20 2b 20 66 72 6f |ith y = |(1 + fro|
|00003250| 6d 54 68 65 54 6f 70 29 | 20 74 6f 20 74 6f 74 4c |mTheTop)| to totL|
|00003260| 69 6e 65 73 0d 72 65 70 | 65 61 74 0d 69 66 20 63 |ines.rep|eat.if c|
|00003270| 68 61 72 20 31 20 6f 66 | 20 6c 69 6e 65 20 31 20 |har 1 of| line 1 |
|00003280| 6f 66 20 74 68 65 54 65 | 78 74 20 69 73 20 22 20 |of theTe|xt is " |
|00003290| 22 20 74 68 65 6e 0d 64 | 65 6c 65 74 65 20 63 68 |" then.d|elete ch|
|000032a0| 61 72 20 31 20 6f 66 20 | 6c 69 6e 65 20 31 20 6f |ar 1 of |line 1 o|
|000032b0| 66 20 74 68 65 54 65 78 | 74 0d 65 6c 73 65 0d 65 |f theTex|t.else.e|
|000032c0| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |xit repe|at.end i|
|000032d0| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |f.end re|peat.if |
|000032e0| 74 68 65 52 75 6e 57 69 | 64 74 68 20 3e 20 33 32 |theRunWi|dth > 32|
|000032f0| 30 20 74 68 65 6e 0d 70 | 75 74 20 72 65 74 75 72 |0 then.p|ut retur|
|00003300| 6e 20 62 65 66 6f 72 65 | 20 6c 69 6e 65 20 79 20 |n before| line y |
|00003310| 6f 66 20 72 65 46 6c 6f | 77 65 64 54 65 78 74 0d |of reFlo|wedText.|
|00003320| 65 6c 73 65 0d 70 75 74 | 20 74 6f 74 53 70 61 63 |else.put| totSpac|
|00003330| 65 73 20 62 65 66 6f 72 | 65 20 6c 69 6e 65 20 31 |es befor|e line 1|
|00003340| 20 6f 66 20 74 68 65 54 | 65 78 74 0d 70 75 74 20 | of theT|ext.put |
|00003350| 77 6f 72 64 57 72 61 70 | 28 6c 69 6e 65 20 31 20 |wordWrap|(line 1 |
|00003360| 6f 66 20 74 68 65 54 65 | 78 74 2c 28 74 68 65 20 |of theTe|xt,(the |
|00003370| 77 69 64 74 68 20 6f 66 | 20 66 6c 64 20 22 42 6f |width of| fld "Bo|
|00003380| 64 79 22 20 2d 20 28 74 | 68 65 53 69 7a 65 20 2b |dy" - (t|heSize +|
|00003390| 20 31 30 29 29 2c 74 68 | 65 46 6f 6e 74 2c 74 68 | 10)),th|eFont,th|
|000033a0| 65 53 69 7a 65 2c 70 6c | 61 69 6e 29 20 69 6e 74 |eSize,pl|ain) int|
|000033b0| 6f 20 6c 69 6e 65 20 79 | 20 6f 66 20 72 65 46 6c |o line y| of reFl|
|000033c0| 6f 77 65 64 54 65 78 74 | 0d 64 65 6c 65 74 65 20 |owedText|.delete |
|000033d0| 63 68 61 72 20 31 20 74 | 6f 20 28 74 68 65 20 6e |char 1 t|o (the n|
|000033e0| 75 6d 62 65 72 20 6f 66 | 20 63 68 61 72 73 20 6f |umber of| chars o|
|000033f0| 66 20 6c 69 6e 65 20 79 | 20 6f 66 20 72 65 46 6c |f line y| of reFl|
|00003400| 6f 77 65 64 54 65 78 74 | 29 20 6f 66 20 74 68 65 |owedText|) of the|
|00003410| 54 65 78 74 0d 69 66 20 | 63 68 61 72 20 31 20 6f |Text.if |char 1 o|
|00003420| 66 20 74 68 65 54 65 78 | 74 20 69 73 20 72 65 74 |f theTex|t is ret|
|00003430| 75 72 6e 20 74 68 65 6e | 0d 64 65 6c 65 74 65 20 |urn then|.delete |
|00003440| 63 68 61 72 20 31 20 6f | 66 20 74 68 65 54 65 78 |char 1 o|f theTex|
|00003450| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 69 66 0d |t.end if|.end if.|
|00003460| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6c 73 65 0d |end repe|at.else.|
|00003470| 72 65 70 65 61 74 20 77 | 69 74 68 20 79 20 3d 20 |repeat w|ith y = |
|00003480| 28 31 20 2b 20 66 72 6f | 6d 54 68 65 54 6f 70 29 |(1 + fro|mTheTop)|
|00003490| 20 74 6f 20 74 6f 74 4c | 69 6e 65 73 0d 72 65 70 | to totL|ines.rep|
|000034a0| 65 61 74 0d 69 66 20 63 | 68 61 72 20 31 20 6f 66 |eat.if c|har 1 of|
|000034b0| 20 6c 69 6e 65 20 31 20 | 6f 66 20 74 68 65 54 65 | line 1 |of theTe|
|000034c0| 78 74 20 69 73 20 22 20 | 22 20 74 68 65 6e 0d 64 |xt is " |" then.d|
|000034d0| 65 6c 65 74 65 20 63 68 | 61 72 20 31 20 6f 66 20 |elete ch|ar 1 of |
|000034e0| 6c 69 6e 65 20 31 20 6f | 66 20 74 68 65 54 65 78 |line 1 o|f theTex|
|000034f0| 74 0d 65 6c 73 65 0d 65 | 78 69 74 20 72 65 70 65 |t.else.e|xit repe|
|00003500| 61 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |at.end i|f.end re|
|00003510| 70 65 61 74 0d 69 66 20 | 74 68 65 20 77 69 64 74 |peat.if |the widt|
|00003520| 68 20 6f 66 20 66 6c 64 | 20 22 42 6f 64 79 22 20 |h of fld| "Body" |
|00003530| 3c 20 69 74 65 6d 20 31 | 20 6f 66 20 74 68 65 50 |< item 1| of theP|
|00003540| 69 63 20 2d 20 39 35 20 | 74 68 65 6e 20 70 75 74 |ic - 95 |then put|
|00003550| 20 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 66 6c | the wid|th of fl|
|00003560| 64 20 22 42 6f 64 79 22 | 20 69 6e 74 6f 20 74 68 |d "Body"| into th|
|00003570| 65 57 69 64 74 68 0d 65 | 6c 73 65 20 70 75 74 20 |eWidth.e|lse put |
|00003580| 69 74 65 6d 20 31 20 6f | 66 20 74 68 65 50 69 63 |item 1 o|f thePic|
|00003590| 20 2d 20 39 35 20 69 6e | 74 6f 20 74 68 65 57 69 | - 95 in|to theWi|
|000035a0| 64 74 68 0d 69 66 20 74 | 68 65 52 75 6e 57 69 64 |dth.if t|heRunWid|
|000035b0| 74 68 20 3e 20 33 32 30 | 20 74 68 65 6e 0d 70 75 |th > 320| then.pu|
|000035c0| 74 20 72 65 74 75 72 6e | 20 62 65 66 6f 72 65 20 |t return| before |
|000035d0| 6c 69 6e 65 20 79 20 6f | 66 20 72 65 46 6c 6f 77 |line y o|f reFlow|
|000035e0| 65 64 54 65 78 74 0d 65 | 6c 73 65 0d 70 75 74 20 |edText.e|lse.put |
|000035f0| 77 6f 72 64 57 72 61 70 | 28 6c 69 6e 65 20 31 20 |wordWrap|(line 1 |
|00003600| 6f 66 20 74 68 65 54 65 | 78 74 2c 74 68 65 57 69 |of theTe|xt,theWi|
|00003610| 64 74 68 2c 74 68 65 46 | 6f 6e 74 2c 74 68 65 53 |dth,theF|ont,theS|
|00003620| 69 7a 65 2c 70 6c 61 69 | 6e 29 20 69 6e 74 6f 20 |ize,plai|n) into |
|00003630| 6c 69 6e 65 20 79 20 6f | 66 20 72 65 46 6c 6f 77 |line y o|f reFlow|
|00003640| 65 64 54 65 78 74 0d 64 | 65 6c 65 74 65 20 63 68 |edText.d|elete ch|
|00003650| 61 72 20 31 20 74 6f 20 | 28 74 68 65 20 6e 75 6d |ar 1 to |(the num|
|00003660| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 6f 66 20 |ber of c|hars of |
|00003670| 6c 69 6e 65 20 79 20 6f | 66 20 72 65 46 6c 6f 77 |line y o|f reFlow|
|00003680| 65 64 54 65 78 74 29 20 | 6f 66 20 74 68 65 54 65 |edText) |of theTe|
|00003690| 78 74 0d 69 66 20 63 68 | 61 72 20 31 20 6f 66 20 |xt.if ch|ar 1 of |
|000036a0| 74 68 65 54 65 78 74 20 | 69 73 20 72 65 74 75 72 |theText |is retur|
|000036b0| 6e 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 63 68 |n then d|elete ch|
|000036c0| 61 72 20 31 20 6f 66 20 | 74 68 65 54 65 78 74 0d |ar 1 of |theText.|
|000036d0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 72 65 70 65 61 |end if.e|nd repea|
|000036e0| 74 0d 65 6e 64 20 69 66 | 0d 69 66 20 74 68 65 20 |t.end if|.if the |
|000036f0| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00003700| 6f 66 20 74 68 65 54 65 | 78 74 20 3d 20 30 20 74 |of theTe|xt = 0 t|
|00003710| 68 65 6e 0d 70 75 74 20 | 6c 69 6e 65 20 31 20 74 |hen.put |line 1 t|
|00003720| 6f 20 74 6f 74 4c 69 6e | 65 73 20 6f 66 20 72 65 |o totLin|es of re|
|00003730| 46 6c 6f 77 65 64 54 65 | 78 74 20 26 20 72 65 74 |FlowedTe|xt & ret|
|00003740| 75 72 6e 20 69 6e 74 6f | 20 72 75 6e 41 72 6f 75 |urn into| runArou|
|00003750| 6e 64 54 65 78 74 0d 65 | 6c 73 65 0d 72 65 70 65 |ndText.e|lse.repe|
|00003760| 61 74 20 77 69 74 68 20 | 77 20 3d 20 31 20 74 6f |at with |w = 1 to|
|00003770| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|00003780| 69 6e 65 73 20 6f 66 20 | 74 68 65 54 65 78 74 0d |ines of |theText.|
|00003790| 70 75 74 20 77 6f 72 64 | 57 72 61 70 28 6c 69 6e |put word|Wrap(lin|
|000037a0| 65 20 77 20 6f 66 20 74 | 68 65 54 65 78 74 2c 28 |e w of t|heText,(|
|000037b0| 74 68 65 20 77 69 64 74 | 68 20 6f 66 20 66 6c 64 |the widt|h of fld|
|000037c0| 20 22 42 6f 64 79 22 20 | 2d 20 28 74 68 65 53 69 | "Body" |- (theSi|
|000037d0| 7a 65 20 2b 20 31 30 29 | 29 2c 74 68 65 46 6f 6e |ze + 10)|),theFon|
|000037e0| 74 2c 74 68 65 53 69 7a | 65 2c 70 6c 61 69 6e 29 |t,theSiz|e,plain)|
|000037f0| 20 26 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 | & retur|n after |
|00003800| 6f 76 65 72 54 65 78 74 | 0d 72 65 70 65 61 74 0d |overText|.repeat.|
|00003810| 69 66 20 63 68 61 72 20 | 31 20 6f 66 20 6c 69 6e |if char |1 of lin|
|00003820| 65 20 31 20 6f 66 20 6f | 76 65 72 54 65 78 74 20 |e 1 of o|verText |
|00003830| 69 73 20 22 20 22 20 74 | 68 65 6e 0d 64 65 6c 65 |is " " t|hen.dele|
|00003840| 74 65 20 63 68 61 72 20 | 31 20 6f 66 20 6c 69 6e |te char |1 of lin|
|00003850| 65 20 31 20 6f 66 20 6f | 76 65 72 54 65 78 74 0d |e 1 of o|verText.|
|00003860| 65 6c 73 65 0d 65 78 69 | 74 20 72 65 70 65 61 74 |else.exi|t repeat|
|00003870| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00003880| 61 74 0d 70 75 74 20 6c | 69 6e 65 20 31 20 74 6f |at.put l|ine 1 to|
|00003890| 20 74 6f 74 4c 69 6e 65 | 73 20 6f 66 20 72 65 46 | totLine|s of reF|
|000038a0| 6c 6f 77 65 64 54 65 78 | 74 20 26 20 72 65 74 75 |lowedTex|t & retu|
|000038b0| 72 6e 20 26 20 6f 76 65 | 72 54 65 78 74 20 69 6e |rn & ove|rText in|
|000038c0| 74 6f 20 72 75 6e 41 72 | 6f 75 6e 64 54 65 78 74 |to runAr|oundText|
|000038d0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |.end rep|eat.end |
|000038e0| 69 66 0d 72 65 74 75 72 | 6e 20 72 75 6e 41 72 6f |if.retur|n runAro|
|000038f0| 75 6e 64 54 65 78 74 0d | 65 6e 64 20 64 6f 52 75 |undText.|end doRu|
|00003900| 6e 41 72 6f 75 6e 64 0d | 0d 0d 66 75 6e 63 74 69 |nAround.|..functi|
|00003910| 6f 6e 20 66 6f 72 6d 61 | 74 54 65 78 74 20 77 68 |on forma|tText wh|
|00003920| 61 74 54 65 78 74 0d 70 | 75 74 20 30 20 69 6e 74 |atText.p|ut 0 int|
|00003930| 6f 20 74 68 65 49 6e 64 | 65 6e 74 73 0d 70 75 74 |o theInd|ents.put|
|00003940| 20 30 20 69 6e 74 6f 20 | 74 68 65 52 65 74 75 72 | 0 into |theRetur|
|00003950| 6e 73 0d 72 65 70 65 61 | 74 20 77 68 69 6c 65 20 |ns.repea|t while |
|00003960| 6f 66 66 73 65 74 28 74 | 61 62 2c 77 68 61 74 54 |offset(t|ab,whatT|
|00003970| 65 78 74 29 20 3c 3e 20 | 30 0d 69 66 20 63 68 61 |ext) <> |0.if cha|
|00003980| 72 20 6f 66 66 73 65 74 | 28 74 61 62 2c 77 68 61 |r offset|(tab,wha|
|00003990| 74 54 65 78 74 29 20 74 | 6f 20 6f 66 66 73 65 74 |tText) t|o offset|
|000039a0| 28 74 61 62 2c 77 68 61 | 74 54 65 78 74 29 20 2b |(tab,wha|tText) +|
|000039b0| 20 35 20 6f 66 20 77 68 | 61 74 54 65 78 74 20 69 | 5 of wh|atText i|
|000039c0| 73 20 28 74 61 62 20 26 | 20 74 61 62 20 26 20 74 |s (tab &| tab & t|
|000039d0| 61 62 20 26 20 74 61 62 | 20 26 20 74 61 62 20 26 |ab & tab| & tab &|
|000039e0| 20 74 61 62 29 20 74 68 | 65 6e 0d 70 75 74 20 22 | tab) th|en.put "|
|000039f0| 5c 22 20 69 6e 74 6f 20 | 63 68 61 72 20 6f 66 66 |\" into |char off|
|00003a00| 73 65 74 28 74 61 62 2c | 77 68 61 74 54 65 78 74 |set(tab,|whatText|
|00003a10| 29 20 74 6f 20 6f 66 66 | 73 65 74 28 74 61 62 2c |) to off|set(tab,|
|00003a20| 77 68 61 74 54 65 78 74 | 29 20 2b 20 35 20 6f 66 |whatText|) + 5 of|
|00003a30| 20 77 68 61 74 54 65 78 | 74 0d 61 64 64 20 31 20 | whatTex|t.add 1 |
|00003a40| 74 6f 20 74 68 65 49 6e | 64 65 6e 74 73 0d 65 6c |to theIn|dents.el|
|00003a50| 73 65 0d 69 66 20 63 68 | 61 72 20 6f 66 66 73 65 |se.if ch|ar offse|
|00003a60| 74 28 74 61 62 2c 77 68 | 61 74 54 65 78 74 29 20 |t(tab,wh|atText) |
|00003a70| 2b 20 31 20 6f 66 20 77 | 68 61 74 54 65 78 74 20 |+ 1 of w|hatText |
|00003a80| 69 73 20 72 65 74 75 72 | 6e 20 74 68 65 6e 0d 70 |is retur|n then.p|
|00003a90| 75 74 20 22 7c 22 20 69 | 6e 74 6f 20 63 68 61 72 |ut "|" i|nto char|
|00003aa0| 20 6f 66 66 73 65 74 28 | 74 61 62 2c 77 68 61 74 | offset(|tab,what|
|00003ab0| 54 65 78 74 29 20 74 6f | 20 6f 66 66 73 65 74 28 |Text) to| offset(|
|00003ac0| 74 61 62 2c 77 68 61 74 | 54 65 78 74 29 20 2b 20 |tab,what|Text) + |
|00003ad0| 31 20 6f 66 20 77 68 61 | 74 54 65 78 74 0d 61 64 |1 of wha|tText.ad|
|00003ae0| 64 20 31 20 74 6f 20 74 | 68 65 52 65 74 75 72 6e |d 1 to t|heReturn|
|00003af0| 73 0d 65 6c 73 65 0d 69 | 66 20 63 68 61 72 20 6f |s.else.i|f char o|
|00003b00| 66 66 73 65 74 28 74 61 | 62 2c 77 68 61 74 54 65 |ffset(ta|b,whatTe|
|00003b10| 78 74 29 20 2b 20 31 20 | 6f 66 20 77 68 61 74 54 |xt) + 1 |of whatT|
|00003b20| 65 78 74 20 69 73 20 74 | 61 62 20 74 68 65 6e 0d |ext is t|ab then.|
|00003b30| 72 65 70 65 61 74 0d 69 | 66 20 63 68 61 72 20 6f |repeat.i|f char o|
|00003b40| 66 66 73 65 74 28 74 61 | 62 2c 77 68 61 74 54 65 |ffset(ta|b,whatTe|
|00003b50| 78 74 29 20 2b 20 31 20 | 6f 66 20 77 68 61 74 54 |xt) + 1 |of whatT|
|00003b60| 65 78 74 20 69 73 20 6e | 6f 74 20 74 61 62 20 74 |ext is n|ot tab t|
|00003b70| 68 65 6e 20 65 78 69 74 | 20 72 65 70 65 61 74 0d |hen exit| repeat.|
|00003b80| 64 65 6c 65 74 65 20 63 | 68 61 72 20 6f 66 66 73 |delete c|har offs|
|00003b90| 65 74 28 74 61 62 2c 77 | 68 61 74 54 65 78 74 29 |et(tab,w|hatText)|
|00003ba0| 20 2b 20 31 20 6f 66 20 | 77 68 61 74 54 65 78 74 | + 1 of |whatText|
|00003bb0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 70 75 74 20 |.end rep|eat.put |
|00003bc0| 22 5c 22 20 69 6e 74 6f | 20 63 68 61 72 20 6f 66 |"\" into| char of|
|00003bd0| 66 73 65 74 28 74 61 62 | 2c 77 68 61 74 54 65 78 |fset(tab|,whatTex|
|00003be0| 74 29 20 6f 66 20 77 68 | 61 74 54 65 78 74 0d 61 |t) of wh|atText.a|
|00003bf0| 64 64 20 31 20 74 6f 20 | 74 68 65 49 6e 64 65 6e |dd 1 to |theInden|
|00003c00| 74 73 0d 65 6c 73 65 0d | 70 75 74 20 22 7c 22 20 |ts.else.|put "|" |
|00003c10| 69 6e 74 6f 20 63 68 61 | 72 20 6f 66 66 73 65 74 |into cha|r offset|
|00003c20| 28 74 61 62 2c 77 68 61 | 74 54 65 78 74 29 20 6f |(tab,wha|tText) o|
|00003c30| 66 20 77 68 61 74 54 65 | 78 74 0d 61 64 64 20 31 |f whatTe|xt.add 1|
|00003c40| 20 74 6f 20 74 68 65 52 | 65 74 75 72 6e 73 0d 65 | to theR|eturns.e|
|00003c50| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 65 6e 64 |nd if.en|d if.end|
|00003c60| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 | if.end |repeat.r|
|00003c70| 65 70 65 61 74 20 77 68 | 69 6c 65 20 6f 66 66 73 |epeat wh|ile offs|
|00003c80| 65 74 28 22 7c 22 2c 77 | 68 61 74 54 65 78 74 29 |et("|",w|hatText)|
|00003c90| 20 3c 3e 20 30 0d 70 75 | 74 20 6f 66 66 73 65 74 | <> 0.pu|t offset|
|00003ca0| 28 22 7c 22 2c 77 68 61 | 74 54 65 78 74 29 20 69 |("|",wha|tText) i|
|00003cb0| 6e 74 6f 20 6e 65 78 74 | 53 6c 61 73 68 0d 70 75 |nto next|Slash.pu|
|00003cc0| 74 20 22 4d 61 72 6b 69 | 6e 67 20 72 65 74 75 72 |t "Marki|ng retur|
|00003cd0| 6e 73 2e 22 0d 70 75 74 | 20 74 61 62 20 26 20 72 |ns.".put| tab & r|
|00003ce0| 65 74 75 72 6e 20 69 6e | 74 6f 20 63 68 61 72 20 |eturn in|to char |
|00003cf0| 6e 65 78 74 53 6c 61 73 | 68 20 6f 66 20 77 68 61 |nextSlas|h of wha|
|00003d00| 74 54 65 78 74 0d 69 66 | 20 63 68 61 72 20 6e 65 |tText.if| char ne|
|00003d10| 78 74 53 6c 61 73 68 20 | 2b 20 32 20 6f 66 20 77 |xtSlash |+ 2 of w|
|00003d20| 68 61 74 54 65 78 74 20 | 69 73 20 22 20 22 20 74 |hatText |is " " t|
|00003d30| 68 65 6e 20 64 65 6c 65 | 74 65 20 63 68 61 72 20 |hen dele|te char |
|00003d40| 6e 65 78 74 53 6c 61 73 | 68 20 2b 20 32 20 6f 66 |nextSlas|h + 2 of|
|00003d50| 20 77 68 61 74 54 65 78 | 74 0d 65 6e 64 20 72 65 | whatTex|t.end re|
|00003d60| 70 65 61 74 0d 72 65 70 | 65 61 74 20 77 68 69 6c |peat.rep|eat whil|
|00003d70| 65 20 6f 66 66 73 65 74 | 28 22 5c 22 2c 77 68 61 |e offset|("\",wha|
|00003d80| 74 54 65 78 74 29 20 3c | 3e 20 30 0d 70 75 74 20 |tText) <|> 0.put |
|00003d90| 6f 66 66 73 65 74 28 22 | 5c 22 2c 77 68 61 74 54 |offset("|\",whatT|
|00003da0| 65 78 74 29 20 69 6e 74 | 6f 20 6e 65 78 74 49 6e |ext) int|o nextIn|
|00003db0| 64 65 6e 74 0d 70 75 74 | 20 22 4d 61 72 6b 69 6e |dent.put| "Markin|
|00003dc0| 67 20 69 6e 64 65 6e 74 | 73 2e 22 0d 70 75 74 20 |g indent|s.".put |
|00003dd0| 28 74 61 62 20 26 20 74 | 61 62 20 26 20 74 61 62 |(tab & t|ab & tab|
|00003de0| 20 26 20 74 61 62 20 26 | 20 74 61 62 20 26 20 74 | & tab &| tab & t|
|00003df0| 61 62 29 20 69 6e 74 6f | 20 63 68 61 72 20 6e 65 |ab) into| char ne|
|00003e00| 78 74 49 6e 64 65 6e 74 | 20 6f 66 20 77 68 61 74 |xtIndent| of what|
|00003e10| 54 65 78 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |Text.end| repeat.|
|00003e20| 72 65 74 75 72 6e 20 77 | 68 61 74 54 65 78 74 0d |return w|hatText.|
|00003e30| 65 6e 64 20 66 6f 72 6d | 61 74 54 65 78 74 0d 0d |end form|atText..|
|00003e40| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00003e50| 49 6e 20 77 68 61 74 54 | 65 78 74 2c 74 68 65 46 |In whatT|ext,theF|
|00003e60| 6f 6e 74 2c 74 68 65 53 | 69 7a 65 0d 70 75 74 20 |ont,theS|ize.put |
|00003e70| 65 6d 70 74 79 20 69 6e | 74 6f 20 6e 65 77 54 65 |empty in|to newTe|
|00003e80| 78 74 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 78 |xt.repea|t with x|
|00003e90| 20 3d 20 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | = 1 to |the numb|
|00003ea0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 6f 66 20 77 |er of li|nes of w|
|00003eb0| 68 61 74 54 65 78 74 0d | 70 75 74 20 77 6f 72 64 |hatText.|put word|
|00003ec0| 57 72 61 70 28 6c 69 6e | 65 20 78 20 6f 66 20 77 |Wrap(lin|e x of w|
|00003ed0| 68 61 74 54 65 78 74 2c | 28 74 68 65 20 77 69 64 |hatText,|(the wid|
|00003ee0| 74 68 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 |th of fl|d "Body"|
|00003ef0| 20 2d 20 28 74 68 65 53 | 69 7a 65 20 2b 20 31 30 | - (theS|ize + 10|
|00003f00| 29 29 2c 74 68 65 46 6f | 6e 74 2c 74 68 65 53 69 |)),theFo|nt,theSi|
|00003f10| 7a 65 2c 70 6c 61 69 6e | 29 20 26 20 72 65 74 75 |ze,plain|) & retu|
|00003f20| 72 6e 20 61 66 74 65 72 | 20 6e 65 77 54 65 78 74 |rn after| newText|
|00003f30| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|00003f40| 72 6e 20 6e 65 77 54 65 | 78 74 0d 65 6e 64 20 72 |rn newTe|xt.end r|
|00003f50| 65 74 75 72 6e 73 49 6e | 0d 0d 66 75 6e 63 74 69 |eturnsIn|..functi|
|00003f60| 6f 6e 20 6d 61 72 6b 52 | 65 74 75 72 6e 73 20 74 |on markR|eturns t|
|00003f70| 68 65 52 65 73 74 4f 66 | 54 68 69 73 42 67 0d 72 |heRestOf|ThisBg.r|
|00003f80| 65 70 65 61 74 20 77 68 | 69 6c 65 20 6f 66 66 73 |epeat wh|ile offs|
|00003f90| 65 74 28 72 65 74 75 72 | 6e 2c 74 68 65 52 65 73 |et(retur|n,theRes|
|00003fa0| 74 4f 66 54 68 69 73 42 | 67 29 20 3c 3e 20 30 0d |tOfThisB|g) <> 0.|
|00003fb0| 70 75 74 20 22 7c 22 20 | 69 6e 74 6f 20 63 68 61 |put "|" |into cha|
|00003fc0| 72 20 6f 66 66 73 65 74 | 28 72 65 74 75 72 6e 2c |r offset|(return,|
|00003fd0| 74 68 65 52 65 73 74 4f | 66 54 68 69 73 42 67 29 |theRestO|fThisBg)|
|00003fe0| 20 6f 66 20 74 68 65 52 | 65 73 74 4f 66 54 68 69 | of theR|estOfThi|
|00003ff0| 73 42 67 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 |sBg.end |repeat.r|
|00004000| 65 74 75 72 6e 20 74 68 | 65 52 65 73 74 4f 66 54 |eturn th|eRestOfT|
|00004010| 68 69 73 42 67 0d 65 6e | 64 20 6d 61 72 6b 52 65 |hisBg.en|d markRe|
|00004020| 74 75 72 6e 73 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |turns..f|unction |
|00004030| 72 65 74 75 72 6e 73 4f | 75 74 20 74 68 65 52 65 |returnsO|ut theRe|
|00004040| 73 74 4f 66 54 68 69 73 | 42 67 0d 72 65 70 65 61 |stOfThis|Bg.repea|
|00004050| 74 20 77 68 69 6c 65 20 | 6f 66 66 73 65 74 28 72 |t while |offset(r|
|00004060| 65 74 75 72 6e 2c 74 68 | 65 52 65 73 74 4f 66 54 |eturn,th|eRestOfT|
|00004070| 68 69 73 42 67 29 20 3c | 3e 20 30 0d 70 75 74 20 |hisBg) <|> 0.put |
|00004080| 22 20 22 20 69 6e 74 6f | 20 63 68 61 72 20 6f 66 |" " into| char of|
|00004090| 66 73 65 74 28 72 65 74 | 75 72 6e 2c 74 68 65 52 |fset(ret|urn,theR|
|000040a0| 65 73 74 4f 66 54 68 69 | 73 42 67 29 20 6f 66 20 |estOfThi|sBg) of |
|000040b0| 74 68 65 52 65 73 74 4f | 66 54 68 69 73 42 67 0d |theRestO|fThisBg.|
|000040c0| 65 6e 64 20 72 65 70 65 | 61 74 0d 72 65 74 75 72 |end repe|at.retur|
|000040d0| 6e 20 74 68 65 52 65 73 | 74 4f 66 54 68 69 73 42 |n theRes|tOfThisB|
|000040e0| 67 0d 65 6e 64 20 72 65 | 74 75 72 6e 73 4f 75 74 |g.end re|turnsOut|
|000040f0| 0d 0d 0d 6f 6e 20 63 6f | 6d 6d 61 6e 64 4b 65 79 |...on co|mmandKey|
|00004100| 44 6f 77 6e 20 77 68 69 | 63 68 4b 65 79 0d 69 66 |Down whi|chKey.if|
|00004110| 20 77 68 69 63 68 4b 65 | 79 20 69 73 20 69 6e 20 | whichKe|y is in |
|00004120| 22 45 2c 52 2c 4e 2c 49 | 2c 54 2c 55 22 20 74 68 |"E,R,N,I|,T,U" th|
|00004130| 65 6e 0d 69 66 20 77 68 | 69 63 68 4b 65 79 20 69 |en.if wh|ichKey i|
|00004140| 73 20 22 45 22 20 74 68 | 65 6e 0d 74 65 78 74 49 |s "E" th|en.textI|
|00004150| 6e 73 65 72 74 0d 65 78 | 69 74 20 63 6f 6d 6d 61 |nsert.ex|it comma|
|00004160| 6e 64 4b 65 79 44 6f 77 | 6e 0d 65 6e 64 20 69 66 |ndKeyDow|n.end if|
|00004170| 0d 69 66 20 77 68 69 63 | 68 4b 65 79 20 69 73 20 |.if whic|hKey is |
|00004180| 22 52 22 20 74 68 65 6e | 0d 72 65 46 6c 6f 77 57 |"R" then|.reFlowW|
|00004190| 69 74 68 53 74 79 6c 65 | 0d 65 78 69 74 20 63 6f |ithStyle|.exit co|
|000041a0| 6d 6d 61 6e 64 4b 65 79 | 44 6f 77 6e 0d 65 6e 64 |mmandKey|Down.end|
|000041b0| 20 69 66 0d 69 66 20 77 | 68 69 63 68 4b 65 79 20 | if.if w|hichKey |
|000041c0| 69 73 20 22 4e 22 20 74 | 68 65 6e 0d 63 72 65 61 |is "N" t|hen.crea|
|000041d0| 74 65 43 68 61 70 74 65 | 72 0d 65 78 69 74 20 63 |teChapte|r.exit c|
|000041e0| 6f 6d 6d 61 6e 64 4b 65 | 79 44 6f 77 6e 0d 65 6e |ommandKe|yDown.en|
|000041f0| 64 20 69 66 0d 69 66 20 | 77 68 69 63 68 4b 65 79 |d if.if |whichKey|
|00004200| 20 69 73 20 22 54 22 20 | 74 68 65 6e 0d 69 6d 70 | is "T" |then.imp|
|00004210| 6f 72 74 54 65 78 74 0d | 65 78 69 74 20 63 6f 6d |ortText.|exit com|
|00004220| 6d 61 6e 64 4b 65 79 44 | 6f 77 6e 0d 65 6e 64 20 |mandKeyD|own.end |
|00004230| 69 66 0d 69 66 20 77 68 | 69 63 68 4b 65 79 20 69 |if.if wh|ichKey i|
|00004240| 73 20 22 49 22 20 74 68 | 65 6e 0d 6d 61 6b 65 49 |s "I" th|en.makeI|
|00004250| 6e 64 65 6e 74 0d 65 78 | 69 74 20 63 6f 6d 6d 61 |ndent.ex|it comma|
|00004260| 6e 64 4b 65 79 44 6f 77 | 6e 0d 65 6e 64 20 69 66 |ndKeyDow|n.end if|
|00004270| 0d 69 66 20 77 68 69 63 | 68 4b 65 79 20 69 73 20 |.if whic|hKey is |
|00004280| 22 55 22 20 74 68 65 6e | 0d 64 65 6c 65 74 65 49 |"U" then|.deleteI|
|00004290| 6e 64 65 6e 74 0d 65 78 | 69 74 20 63 6f 6d 6d 61 |ndent.ex|it comma|
|000042a0| 6e 64 4b 65 79 44 6f 77 | 6e 0d 65 6e 64 20 69 66 |ndKeyDow|n.end if|
|000042b0| 0d 65 6e 64 20 69 66 0d | 70 61 73 73 20 63 6f 6d |.end if.|pass com|
|000042c0| 6d 61 6e 64 4b 65 79 44 | 6f 77 6e 0d 65 6e 64 20 |mandKeyD|own.end |
|000042d0| 63 6f 6d 6d 61 6e 64 4b | 65 79 44 6f 77 6e 0d 0d |commandK|eyDown..|
|000042e0| 6f 6e 20 65 78 70 6f 72 | 74 54 65 78 74 0d 69 66 |on expor|tText.if|
|000042f0| 20 74 6f 6f 6c 73 53 74 | 61 63 6b 28 29 20 74 68 | toolsSt|ack() th|
|00004300| 65 6e 20 65 78 69 74 20 | 65 78 70 6f 72 74 54 65 |en exit |exportTe|
|00004310| 78 74 0d 70 75 74 20 74 | 68 65 20 76 69 73 69 62 |xt.put t|he visib|
|00004320| 6c 65 20 6f 66 20 6d 73 | 67 20 69 6e 74 6f 20 6d |le of ms|g into m|
|00004330| 56 69 73 0d 61 6e 73 77 | 65 72 20 22 45 78 70 6f |Vis.answ|er "Expo|
|00004340| 72 74 20 61 6c 6c 20 63 | 6f 70 79 20 6f 72 20 6a |rt all c|opy or j|
|00004350| 75 73 74 20 74 68 69 73 | 20 63 68 61 70 74 65 72 |ust this| chapter|
|00004360| 3f 22 20 77 69 74 68 20 | 22 43 61 6e 63 65 6c 22 |?" with |"Cancel"|
|00004370| 20 6f 72 20 22 41 6c 6c | 22 20 6f 72 20 22 43 68 | or "All|" or "Ch|
|00004380| 61 70 74 65 72 22 0d 69 | 66 20 69 74 20 69 73 20 |apter".i|f it is |
|00004390| 22 43 61 6e 63 65 6c 22 | 20 6f 72 20 74 68 65 20 |"Cancel"| or the |
|000043a0| 72 65 73 75 6c 74 20 69 | 73 20 22 43 61 6e 63 65 |result i|s "Cance|
|000043b0| 6c 22 20 74 68 65 6e 20 | 65 78 69 74 20 65 78 70 |l" then |exit exp|
|000043c0| 6f 72 74 54 65 78 74 0d | 70 75 74 20 69 74 20 69 |ortText.|put it i|
|000043d0| 6e 74 6f 20 74 68 65 41 | 6e 73 77 65 72 0d 61 6e |nto theA|nswer.an|
|000043e0| 73 77 65 72 20 66 69 6c | 65 20 22 43 68 6f 6f 73 |swer fil|e "Choos|
|000043f0| 65 20 61 20 74 65 78 74 | 20 66 69 6c 65 20 69 6e |e a text| file in|
|00004400| 74 6f 20 77 68 69 63 68 | 20 79 6f 75 20 77 69 73 |to which| you wis|
|00004410| 68 20 74 6f 20 65 78 70 | 6f 72 74 22 20 6f 66 20 |h to exp|ort" of |
|00004420| 74 79 70 65 20 74 65 78 | 74 0d 69 66 20 69 74 20 |type tex|t.if it |
|00004430| 69 73 20 65 6d 70 74 79 | 20 74 68 65 6e 20 65 78 |is empty| then ex|
|00004440| 69 74 20 65 78 70 6f 72 | 74 54 65 78 74 0d 70 75 |it expor|tText.pu|
|00004450| 74 20 69 74 20 69 6e 74 | 6f 20 74 68 65 46 69 6c |t it int|o theFil|
|00004460| 65 0d 70 75 74 20 66 6c | 64 20 22 41 72 74 69 63 |e.put fl|d "Artic|
|00004470| 6c 65 4e 61 6d 65 22 20 | 69 6e 74 6f 20 74 68 69 |leName" |into thi|
|00004480| 73 43 68 61 70 74 0d 6f | 70 65 6e 20 66 69 6c 65 |sChapt.o|pen file|
|00004490| 20 74 68 65 46 69 6c 65 | 0d 6c 6f 63 6b 20 6d 65 | theFile|.lock me|
|000044a0| 73 73 61 67 65 73 0d 69 | 66 20 74 68 65 41 6e 73 |ssages.i|f theAns|
|000044b0| 77 65 72 20 69 73 20 22 | 43 68 61 70 74 65 72 22 |wer is "|Chapter"|
|000044c0| 20 74 68 65 6e 0d 75 6e | 6d 61 72 6b 20 61 6c 6c | then.un|mark all|
|000044d0| 20 63 64 73 0d 6d 61 72 | 6b 20 63 64 73 20 77 68 | cds.mar|k cds wh|
|000044e0| 65 72 65 20 66 6c 64 20 | 22 41 72 74 69 63 6c 65 |ere fld |"Article|
|000044f0| 4e 61 6d 65 22 20 69 73 | 20 74 68 69 73 43 68 61 |Name" is| thisCha|
|00004500| 70 74 0d 67 6f 20 66 69 | 72 73 74 20 6d 61 72 6b |pt.go fi|rst mark|
|00004510| 65 64 20 63 64 0d 65 6c | 73 65 0d 6d 61 72 6b 20 |ed cd.el|se.mark |
|00004520| 61 6c 6c 20 63 64 73 0d | 67 6f 20 63 64 20 22 54 |all cds.|go cd "T|
|00004530| 61 62 6c 65 20 6f 66 20 | 43 6f 6e 74 65 6e 74 73 |able of |Contents|
|00004540| 22 0d 67 6f 20 6e 65 78 | 74 0d 70 75 74 20 66 6c |".go nex|t.put fl|
|00004550| 64 20 22 41 72 74 69 63 | 6c 65 4e 61 6d 65 22 20 |d "Artic|leName" |
|00004560| 69 6e 74 6f 20 74 68 69 | 73 43 68 61 70 74 0d 65 |into thi|sChapt.e|
|00004570| 6e 64 20 69 66 0d 6c 6f | 63 6b 20 73 63 72 65 65 |nd if.lo|ck scree|
|00004580| 6e 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 78 20 |n.repeat| with x |
|00004590| 3d 20 31 20 74 6f 20 74 | 68 65 20 6e 75 6d 62 65 |= 1 to t|he numbe|
|000045a0| 72 20 6f 66 20 6d 61 72 | 6b 65 64 20 63 64 73 0d |r of mar|ked cds.|
|000045b0| 70 75 74 20 22 45 78 70 | 6f 72 74 69 6e 67 20 22 |put "Exp|orting "|
|000045c0| 20 26 20 74 68 69 73 43 | 68 61 70 74 20 26 20 22 | & thisC|hapt & "|
|000045d0| 20 d0 20 50 61 67 65 20 | 22 20 26 20 66 6c 64 20 | . Page |" & fld |
|000045e0| 22 50 61 67 65 20 4e 75 | 6d 22 0d 70 75 74 20 66 |"Page Nu|m".put f|
|000045f0| 6c 64 20 22 42 6f 64 79 | 22 20 69 6e 74 6f 20 6f |ld "Body|" into o|
|00004600| 6c 64 54 65 78 74 0d 70 | 75 74 20 72 65 74 75 72 |ldText.p|ut retur|
|00004610| 6e 73 4f 75 74 28 6f 6c | 64 54 65 78 74 29 20 69 |nsOut(ol|dText) i|
|00004620| 6e 74 6f 20 6e 65 77 54 | 65 78 74 0d 70 75 74 20 |nto newT|ext.put |
|00004630| 66 61 73 74 53 74 72 69 | 70 53 70 61 63 65 73 28 |fastStri|pSpaces(|
|00004640| 6e 65 77 54 65 78 74 29 | 20 69 6e 74 6f 20 6e 65 |newText)| into ne|
|00004650| 77 54 65 78 74 0d 70 75 | 74 20 66 6f 72 6d 61 74 |wText.pu|t format|
|00004660| 54 65 78 74 28 6e 65 77 | 54 65 78 74 29 20 69 6e |Text(new|Text) in|
|00004670| 74 6f 20 72 65 46 6c 6f | 77 4f 75 74 0d 70 75 74 |to reFlo|wOut.put|
|00004680| 20 72 65 46 6c 6f 77 4f | 75 74 20 61 66 74 65 72 | reFlowO|ut after|
|00004690| 20 74 68 65 54 65 78 74 | 0d 67 6f 20 6e 65 78 74 | theText|.go next|
|000046a0| 20 6d 61 72 6b 65 64 20 | 63 64 0d 77 72 69 74 65 | marked |cd.write|
|000046b0| 20 74 68 65 54 65 78 74 | 20 74 6f 20 66 69 6c 65 | theText| to file|
|000046c0| 20 74 68 65 46 69 6c 65 | 0d 69 66 20 66 6c 64 20 | theFile|.if fld |
|000046d0| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 ad 20 |"Article|Name" . |
|000046e0| 74 68 69 73 43 68 61 70 | 74 20 74 68 65 6e 0d 77 |thisChap|t then.w|
|000046f0| 72 69 74 65 20 72 65 74 | 75 72 6e 20 26 20 72 65 |rite ret|urn & re|
|00004700| 74 75 72 6e 20 74 6f 20 | 66 69 6c 65 20 74 68 65 |turn to |file the|
|00004710| 46 69 6c 65 0d 70 75 74 | 20 66 6c 64 20 22 41 72 |File.put| fld "Ar|
|00004720| 74 69 63 6c 65 4e 61 6d | 65 22 20 69 6e 74 6f 20 |ticleNam|e" into |
|00004730| 74 68 69 73 43 68 61 70 | 74 0d 65 6e 64 20 69 66 |thisChap|t.end if|
|00004740| 0d 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 |.put emp|ty into |
|00004750| 74 68 65 54 65 78 74 0d | 69 66 20 74 68 65 20 6e |theText.|if the n|
|00004760| 75 6d 62 65 72 20 6f 66 | 20 74 68 69 73 20 63 64 |umber of| this cd|
|00004770| 20 69 73 20 31 20 74 68 | 65 6e 20 65 78 69 74 20 | is 1 th|en exit |
|00004780| 72 65 70 65 61 74 0d 65 | 6e 64 20 72 65 70 65 61 |repeat.e|nd repea|
|00004790| 74 0d 63 6c 6f 73 65 20 | 66 69 6c 65 20 74 68 65 |t.close |file the|
|000047a0| 46 69 6c 65 0d 70 75 74 | 20 22 45 78 70 6f 72 74 |File.put| "Export|
|000047b0| 20 63 6f 6d 70 6c 65 74 | 65 2e 22 0d 77 61 69 74 | complet|e.".wait|
|000047c0| 20 31 20 73 65 63 0d 73 | 65 74 20 74 68 65 20 76 | 1 sec.s|et the v|
|000047d0| 69 73 69 62 6c 65 20 6f | 66 20 6d 73 67 20 74 6f |isible o|f msg to|
|000047e0| 20 6d 56 69 73 0d 65 6e | 64 20 65 78 70 6f 72 74 | mVis.en|d export|
|000047f0| 54 65 78 74 0d 0d 6f 6e | 20 6f 70 65 6e 4d 61 67 |Text..on| openMag|
|00004800| 4d 61 6b 65 72 0d 69 66 | 20 74 6f 6f 6c 73 53 74 |Maker.if| toolsSt|
|00004810| 61 63 6b 28 29 20 74 68 | 65 6e 20 65 78 69 74 20 |ack() th|en exit |
|00004820| 6f 70 65 6e 4d 61 67 4d | 61 6b 65 72 0d 69 66 20 |openMagM|aker.if |
|00004830| 74 68 65 72 65 20 69 73 | 20 61 20 6d 65 6e 75 20 |there is| a menu |
|00004840| 22 4d 61 67 4d 61 6b 65 | 72 22 20 74 68 65 6e 0d |"MagMake|r" then.|
|00004850| 73 65 74 20 74 68 65 20 | 63 68 65 63 6b 4d 61 72 |set the |checkMar|
|00004860| 6b 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 31 20 |k of men|uItem 1 |
|00004870| 6f 66 20 6d 65 6e 75 20 | 22 4c 61 79 6f 75 74 22 |of menu |"Layout"|
|00004880| 20 74 6f 20 66 61 6c 73 | 65 0d 73 65 74 20 74 68 | to fals|e.set th|
|00004890| 65 20 6c 6f 63 6b 54 65 | 78 74 20 6f 66 20 66 6c |e lockTe|xt of fl|
|000048a0| 64 20 22 42 6f 64 79 22 | 20 74 6f 20 74 72 75 65 |d "Body"| to true|
|000048b0| 0d 73 65 74 20 74 68 65 | 20 6c 6f 63 6b 54 65 78 |.set the| lockTex|
|000048c0| 74 20 6f 66 20 66 6c 64 | 20 22 41 72 74 69 63 6c |t of fld| "Articl|
|000048d0| 65 4e 61 6d 65 22 20 74 | 6f 20 74 72 75 65 0d 6f |eName" t|o true.o|
|000048e0| 70 65 6e 73 74 61 63 6b | 20 66 61 6c 73 65 0d 65 |penstack| false.e|
|000048f0| 6c 73 65 0d 6f 70 65 6e | 73 74 61 63 6b 20 74 72 |lse.open|stack tr|
|00004900| 75 65 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 6f 70 |ue.end i|f.end op|
|00004910| 65 6e 4d 61 67 4d 61 6b | 65 72 0d 0d 0d 6f 6e 20 |enMagMak|er...on |
|00004920| 6d 61 67 4d 61 6b 65 72 | 4d 65 6e 75 73 0d 69 66 |magMaker|Menus.if|
|00004930| 20 74 6f 6f 6c 73 53 74 | 61 63 6b 28 29 20 74 68 | toolsSt|ack() th|
|00004940| 65 6e 20 65 78 69 74 20 | 6d 61 67 4d 61 6b 65 72 |en exit |magMaker|
|00004950| 4d 65 6e 75 73 0d 6c 6f | 63 6b 20 73 63 72 65 65 |Menus.lo|ck scree|
|00004960| 6e 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |n.if the|re is a |
|00004970| 6d 65 6e 75 20 22 4d 61 | 67 4d 61 6b 65 72 22 20 |menu "Ma|gMaker" |
|00004980| 74 68 65 6e 20 65 78 69 | 74 20 6d 61 67 4d 61 6b |then exi|t magMak|
|00004990| 65 72 4d 65 6e 75 73 0d | 63 72 65 61 74 65 20 6d |erMenus.|create m|
|000049a0| 65 6e 75 20 22 4c 61 79 | 6f 75 74 22 0d 70 75 74 |enu "Lay|out".put|
|000049b0| 20 6d 61 67 54 65 78 74 | 49 74 65 6d 73 28 29 20 | magText|Items() |
|000049c0| 69 6e 74 6f 20 6d 65 6e | 75 20 22 4c 61 79 6f 75 |into men|u "Layou|
|000049d0| 74 22 20 77 69 74 68 20 | 6d 65 6e 75 4d 73 67 20 |t" with |menuMsg |
|000049e0| 6d 61 67 54 65 78 74 4d | 73 67 73 28 29 0d 73 65 |magTextM|sgs().se|
|000049f0| 74 20 63 6f 6d 6d 61 6e | 64 43 68 61 72 20 6f 66 |t comman|dChar of|
|00004a00| 20 6d 65 6e 75 49 74 65 | 6d 20 31 20 6f 66 20 6d | menuIte|m 1 of m|
|00004a10| 65 6e 75 20 22 4c 61 79 | 6f 75 74 22 20 74 6f 20 |enu "Lay|out" to |
|00004a20| 22 45 22 0d 73 65 74 20 | 63 6f 6d 6d 61 6e 64 43 |"E".set |commandC|
|00004a30| 68 61 72 20 6f 66 20 6d | 65 6e 75 49 74 65 6d 20 |har of m|enuItem |
|00004a40| 32 20 6f 66 20 6d 65 6e | 75 20 22 4c 61 79 6f 75 |2 of men|u "Layou|
|00004a50| 74 22 20 74 6f 20 22 52 | 22 0d 73 65 74 20 63 6f |t" to "R|".set co|
|00004a60| 6d 6d 61 6e 64 43 68 61 | 72 20 6f 66 20 6d 65 6e |mmandCha|r of men|
|00004a70| 75 49 74 65 6d 20 22 4d | 61 6b 65 20 49 6e 64 65 |uItem "M|ake Inde|
|00004a80| 6e 74 22 20 6f 66 20 6d | 65 6e 75 20 22 4c 61 79 |nt" of m|enu "Lay|
|00004a90| 6f 75 74 22 20 74 6f 20 | 22 49 22 0d 73 65 74 20 |out" to |"I".set |
|00004aa0| 63 6f 6d 6d 61 6e 64 43 | 68 61 72 20 6f 66 20 6d |commandC|har of m|
|00004ab0| 65 6e 75 49 74 65 6d 20 | 22 44 65 6c 65 74 65 20 |enuItem |"Delete |
|00004ac0| 49 6e 64 65 6e 74 22 20 | 6f 66 20 6d 65 6e 75 20 |Indent" |of menu |
|00004ad0| 22 4c 61 79 6f 75 74 22 | 20 74 6f 20 22 55 22 0d |"Layout"| to "U".|
|00004ae0| 73 65 74 20 63 6f 6d 6d | 61 6e 64 43 68 61 72 20 |set comm|andChar |
|00004af0| 6f 66 20 6d 65 6e 75 49 | 74 65 6d 20 22 49 6d 70 |of menuI|tem "Imp|
|00004b00| 6f 72 74 20 54 65 78 74 | 22 20 6f 66 20 6d 65 6e |ort Text|" of men|
|00004b10| 75 20 22 4c 61 79 6f 75 | 74 22 20 74 6f 20 22 54 |u "Layou|t" to "T|
|00004b20| 22 0d 70 75 74 20 6d 61 | 67 50 69 63 74 75 72 65 |".put ma|gPicture|
|00004b30| 49 74 65 6d 73 28 29 20 | 61 66 74 65 72 20 6d 65 |Items() |after me|
|00004b40| 6e 75 20 22 4c 61 79 6f | 75 74 22 20 77 69 74 68 |nu "Layo|ut" with|
|00004b50| 20 6d 65 6e 75 4d 73 67 | 20 6d 61 67 50 69 63 74 | menuMsg| magPict|
|00004b60| 75 72 65 4d 73 67 73 28 | 29 0d 63 72 65 61 74 65 |ureMsgs(|).create|
|00004b70| 20 6d 65 6e 75 20 22 4d | 61 67 4d 61 6b 65 72 22 | menu "M|agMaker"|
|00004b80| 0d 70 75 74 20 6d 61 67 | 4d 65 6e 75 73 49 74 65 |.put mag|MenusIte|
|00004b90| 6d 73 28 29 20 69 6e 74 | 6f 20 6d 65 6e 75 20 22 |ms() int|o menu "|
|00004ba0| 4d 61 67 4d 61 6b 65 72 | 22 20 77 69 74 68 20 6d |MagMaker|" with m|
|00004bb0| 65 6e 75 4d 73 67 20 6d | 61 67 4d 65 6e 75 73 4d |enuMsg m|agMenusM|
|00004bc0| 73 67 73 28 29 0d 73 65 | 74 20 63 6f 6d 6d 61 6e |sgs().se|t comman|
|00004bd0| 64 43 68 61 72 20 6f 66 | 20 6d 65 6e 75 49 74 65 |dChar of| menuIte|
|00004be0| 6d 20 22 4e 65 77 20 41 | 72 74 69 63 6c 65 22 20 |m "New A|rticle" |
|00004bf0| 6f 66 20 6d 65 6e 75 20 | 22 4d 61 67 4d 61 6b 65 |of menu |"MagMake|
|00004c00| 72 22 20 74 6f 20 22 4e | 22 0d 73 65 74 20 74 68 |r" to "N|".set th|
|00004c10| 65 20 63 6f 6d 6d 61 6e | 64 43 68 61 72 20 6f 66 |e comman|dChar of|
|00004c20| 20 6d 65 6e 75 49 74 65 | 6d 20 22 4e 65 77 20 43 | menuIte|m "New C|
|00004c30| 61 72 64 22 20 6f 66 20 | 6d 65 6e 75 20 22 45 64 |ard" of |menu "Ed|
|00004c40| 69 74 22 20 74 6f 20 22 | 22 0d 70 75 74 20 22 43 |it" to "|".put "C|
|00004c50| 6c 6f 73 65 20 4d 61 67 | 4d 61 6b 65 72 22 20 61 |lose Mag|Maker" a|
|00004c60| 66 74 65 72 20 6d 65 6e | 75 20 22 4d 61 67 4d 61 |fter men|u "MagMa|
|00004c70| 6b 65 72 22 20 77 69 74 | 68 20 6d 65 6e 75 4d 73 |ker" wit|h menuMs|
|00004c80| 67 20 22 63 6c 6f 73 65 | 4d 61 67 4d 61 6b 65 72 |g "close|MagMaker|
|00004c90| 22 0d 70 75 74 20 22 43 | 6f 70 79 20 41 72 74 69 |".put "C|opy Arti|
|00004ca0| 63 6c 65 22 20 26 20 72 | 65 74 75 72 6e 20 26 20 |cle" & r|eturn & |
|00004cb0| 22 50 61 73 74 65 20 41 | 72 74 69 63 6c 65 22 20 |"Paste A|rticle" |
|00004cc0| 26 20 72 65 74 75 72 6e | 20 26 20 22 2d 22 20 61 |& return| & "-" a|
|00004cd0| 66 74 65 72 20 6d 65 6e | 75 49 74 65 6d 20 37 20 |fter men|uItem 7 |
|00004ce0| 6f 66 20 6d 65 6e 75 20 | 22 45 64 69 74 22 0d 73 |of menu |"Edit".s|
|00004cf0| 65 74 20 6d 65 6e 75 4d | 73 67 20 6f 66 20 6d 65 |et menuM|sg of me|
|00004d00| 6e 75 49 74 65 6d 20 22 | 43 6f 70 79 20 41 72 74 |nuItem "|Copy Art|
|00004d10| 69 63 6c 65 22 20 6f 66 | 20 6d 65 6e 75 20 22 45 |icle" of| menu "E|
|00004d20| 64 69 74 22 20 74 6f 20 | 22 63 6f 70 79 41 72 74 |dit" to |"copyArt|
|00004d30| 69 63 6c 65 22 0d 73 65 | 74 20 6d 65 6e 75 4d 73 |icle".se|t menuMs|
|00004d40| 67 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 22 50 |g of men|uItem "P|
|00004d50| 61 73 74 65 20 41 72 74 | 69 63 6c 65 22 20 6f 66 |aste Art|icle" of|
|00004d60| 20 6d 65 6e 75 20 22 45 | 64 69 74 22 20 74 6f 20 | menu "E|dit" to |
|00004d70| 22 70 61 73 74 65 41 72 | 74 69 63 6c 65 22 0d 69 |"pasteAr|ticle".i|
|00004d80| 66 20 74 68 65 20 6c 6f | 63 6b 54 65 78 74 20 6f |f the lo|ckText o|
|00004d90| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 20 69 73 20 |f fld "B|ody" is |
|00004da0| 66 61 6c 73 65 20 74 68 | 65 6e 0d 73 65 74 20 74 |false th|en.set t|
|00004db0| 68 65 20 63 68 65 63 6b | 4d 61 72 6b 20 6f 66 20 |he check|Mark of |
|00004dc0| 6d 65 6e 75 49 74 65 6d | 20 31 20 6f 66 20 6d 65 |menuItem| 1 of me|
|00004dd0| 6e 75 20 22 4c 61 79 6f | 75 74 22 20 74 6f 20 74 |nu "Layo|ut" to t|
|00004de0| 72 75 65 0d 65 6c 73 65 | 0d 73 65 74 20 74 68 65 |rue.else|.set the|
|00004df0| 20 63 68 65 63 6b 4d 61 | 72 6b 20 6f 66 20 6d 65 | checkMa|rk of me|
|00004e00| 6e 75 49 74 65 6d 20 31 | 20 6f 66 20 6d 65 6e 75 |nuItem 1| of menu|
|00004e10| 20 22 4c 61 79 6f 75 74 | 22 20 74 6f 20 66 61 6c | "Layout|" to fal|
|00004e20| 73 65 0d 65 6e 64 20 69 | 66 0d 75 6e 6c 6f 63 6b |se.end i|f.unlock|
|00004e30| 20 73 63 72 65 65 6e 0d | 65 6e 64 20 6d 61 67 4d | screen.|end magM|
|00004e40| 61 6b 65 72 4d 65 6e 75 | 73 0d 0d 6f 6e 20 75 6e |akerMenu|s..on un|
|00004e50| 4d 61 67 4d 65 6e 75 73 | 0d 69 66 20 74 68 65 72 |MagMenus|.if ther|
|00004e60| 65 20 69 73 20 6e 6f 74 | 20 61 20 6d 65 6e 75 20 |e is not| a menu |
|00004e70| 22 4e 61 76 69 67 61 74 | 69 6f 6e 22 20 74 68 65 |"Navigat|ion" the|
|00004e80| 6e 20 65 78 69 74 20 75 | 6e 4d 61 67 4d 65 6e 75 |n exit u|nMagMenu|
|00004e90| 73 0d 65 6c 73 65 20 72 | 65 73 65 74 20 6d 65 6e |s.else r|eset men|
|00004ea0| 75 42 61 72 0d 65 6e 64 | 20 75 6e 4d 61 67 4d 65 |uBar.end| unMagMe|
|00004eb0| 6e 75 73 0d 0d 66 75 6e | 63 74 69 6f 6e 20 6d 61 |nus..fun|ction ma|
|00004ec0| 67 54 65 78 74 49 74 65 | 6d 73 0d 72 65 74 75 72 |gTextIte|ms.retur|
|00004ed0| 6e 20 22 45 64 69 74 20 | 54 65 78 74 2c 52 65 66 |n "Edit |Text,Ref|
|00004ee0| 6c 6f 77 20 54 65 78 74 | 2c 54 79 70 65 73 65 74 |low Text|,Typeset|
|00004ef0| 20 54 65 78 74 2c 2d 2c | 49 6d 70 6f 72 74 20 54 | Text,-,|Import T|
|00004f00| 65 78 74 2c 45 78 70 6f | 72 74 20 54 65 78 74 2c |ext,Expo|rt Text,|
|00004f10| 2d 2c 4d 61 6b 65 20 49 | 6e 64 65 6e 74 2c 44 65 |-,Make I|ndent,De|
|00004f20| 6c 65 74 65 20 49 6e 64 | 65 6e 74 2c 2d 2c 22 0d |lete Ind|ent,-,".|
|00004f30| 65 6e 64 20 6d 61 67 54 | 65 78 74 49 74 65 6d 73 |end magT|extItems|
|00004f40| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 6d 61 67 54 65 |..functi|on magTe|
|00004f50| 78 74 4d 73 67 73 0d 72 | 65 74 75 72 6e 20 22 74 |xtMsgs.r|eturn "t|
|00004f60| 65 78 74 49 6e 73 65 72 | 74 2c 72 65 46 6c 6f 77 |extInser|t,reFlow|
|00004f70| 57 69 74 68 53 74 79 6c | 65 2c 74 79 70 65 73 65 |WithStyl|e,typese|
|00004f80| 74 54 65 78 74 2c 2c 69 | 6d 70 6f 72 74 54 65 78 |tText,,i|mportTex|
|00004f90| 74 2c 65 78 70 6f 72 74 | 54 65 78 74 2c 2c 6d 61 |t,export|Text,,ma|
|00004fa0| 6b 65 49 6e 64 65 6e 74 | 2c 64 65 6c 65 74 65 49 |keIndent|,deleteI|
|00004fb0| 6e 64 65 6e 74 2c 2c 22 | 0d 65 6e 64 20 6d 61 67 |ndent,,"|.end mag|
|00004fc0| 54 65 78 74 4d 73 67 73 | 0d 0d 0d 66 75 6e 63 74 |TextMsgs|...funct|
|00004fd0| 69 6f 6e 20 6d 61 67 50 | 69 63 74 75 72 65 49 74 |ion magP|ictureIt|
|00004fe0| 65 6d 73 0d 72 65 74 75 | 72 6e 20 22 43 72 65 61 |ems.retu|rn "Crea|
|00004ff0| 74 65 20 52 75 6e 2d 41 | 72 6f 75 6e 64 2c 43 6f |te Run-A|round,Co|
|00005000| 70 79 20 52 75 6e 2d 41 | 72 6f 75 6e 64 2c 50 61 |py Run-A|round,Pa|
|00005010| 73 74 65 20 52 75 6e 2d | 41 72 6f 75 6e 64 2c 43 |ste Run-|Around,C|
|00005020| 75 74 20 52 75 6e 2d 41 | 72 6f 75 6e 64 2c 2d 2c |ut Run-A|round,-,|
|00005030| 50 6c 61 63 65 20 50 69 | 63 74 2c 43 6f 70 79 20 |Place Pi|ct,Copy |
|00005040| 50 69 63 74 2c 50 61 73 | 74 65 20 50 69 63 74 2c |Pict,Pas|te Pict,|
|00005050| 43 75 74 20 50 69 63 74 | 2c 2d 2c 49 6d 70 6f 72 |Cut Pict|,-,Impor|
|00005060| 74 20 50 69 63 74 2c 45 | 64 69 74 20 50 69 63 74 |t Pict,E|dit Pict|
|00005070| 20 4c 69 73 74 22 0d 65 | 6e 64 20 6d 61 67 50 69 | List".e|nd magPi|
|00005080| 63 74 75 72 65 49 74 65 | 6d 73 0d 0d 66 75 6e 63 |ctureIte|ms..func|
|00005090| 74 69 6f 6e 20 6d 61 67 | 50 69 63 74 75 72 65 4d |tion mag|PictureM|
|000050a0| 73 67 73 0d 72 65 74 75 | 72 6e 20 22 70 69 63 74 |sgs.retu|rn "pict|
|000050b0| 75 72 65 50 6c 61 63 65 | 2c 63 6f 70 79 50 69 63 |urePlace|,copyPic|
|000050c0| 74 75 72 65 2c 70 61 73 | 74 65 50 69 63 74 75 72 |ture,pas|tePictur|
|000050d0| 65 2c 64 65 6c 65 74 65 | 50 69 63 74 75 72 65 2c |e,delete|Picture,|
|000050e0| 2c 70 6c 61 63 65 50 69 | 63 74 2c 63 6f 70 79 50 |,placePi|ct,copyP|
|000050f0| 69 63 74 2c 70 61 73 74 | 65 50 69 63 74 2c 63 75 |ict,past|ePict,cu|
|00005100| 74 50 69 63 74 2c 2c 69 | 6d 70 6f 72 74 50 69 63 |tPict,,i|mportPic|
|00005110| 74 2c 65 64 69 74 50 69 | 63 74 22 0d 65 6e 64 20 |t,editPi|ct".end |
|00005120| 6d 61 67 50 69 63 74 75 | 72 65 4d 73 67 73 0d 0d |magPictu|reMsgs..|
|00005130| 66 75 6e 63 74 69 6f 6e | 20 6d 61 67 4d 65 6e 75 |function| magMenu|
|00005140| 73 49 74 65 6d 73 0d 72 | 65 74 75 72 6e 20 22 48 |sItems.r|eturn "H|
|00005150| 69 64 65 20 54 6f 6f 6c | 73 2c 53 68 6f 77 20 50 |ide Tool|s,Show P|
|00005160| 69 63 74 20 4c 69 73 74 | 2c 2d 2c 4e 65 77 20 50 |ict List|,-,New P|
|00005170| 61 67 65 2c 4e 65 77 20 | 41 72 74 69 63 6c 65 2c |age,New |Article,|
|00005180| 43 68 61 6e 67 65 20 41 | 72 74 69 63 6c 65 20 4e |Change A|rticle N|
|00005190| 61 6d 65 2c 44 65 6c 65 | 74 65 20 41 72 74 69 63 |ame,Dele|te Artic|
|000051a0| 6c 65 2c 2d 2c 48 69 64 | 65 20 41 72 74 69 63 6c |le,-,Hid|e Articl|
|000051b0| 65 20 4e 61 6d 65 73 2c | 2d 2c 4c 6f 63 6b 20 50 |e Names,|-,Lock P|
|000051c0| 61 67 65 2c 2d 2c 43 72 | 65 61 74 65 20 54 61 62 |age,-,Cr|eate Tab|
|000051d0| 6c 65 20 6f 66 20 43 6f | 6e 74 65 6e 74 73 2c 2d |le of Co|ntents,-|
|000051e0| 2c 22 20 26 20 c2 0d 22 | 53 65 74 20 4d 61 67 61 |," & .."|Set Maga|
|000051f0| 7a 69 6e 65 20 54 65 78 | 74 20 46 6f 6e 74 2c 53 |zine Tex|t Font,S|
|00005200| 65 74 20 4d 61 67 61 7a | 69 6e 65 20 54 65 78 74 |et Magaz|ine Text|
|00005210| 20 53 69 7a 65 2c 53 65 | 74 20 4d 61 67 61 7a 69 | Size,Se|t Magazi|
|00005220| 6e 65 20 54 65 78 74 20 | 4c 65 61 64 69 6e 67 2c |ne Text |Leading,|
|00005230| 2d 2c 4e 65 77 20 4d 61 | 67 61 7a 69 6e 65 2c 2d |-,New Ma|gazine,-|
|00005240| 2c 4f 70 65 6e 20 54 6f | 6f 6c 73 20 53 74 61 63 |,Open To|ols Stac|
|00005250| 6b 22 0d 65 6e 64 20 6d | 61 67 4d 65 6e 75 73 49 |k".end m|agMenusI|
|00005260| 74 65 6d 73 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 6d |tems..fu|nction m|
|00005270| 61 67 4d 65 6e 75 73 4d | 73 67 73 0d 72 65 74 75 |agMenusM|sgs.retu|
|00005280| 72 6e 20 22 73 68 6f 77 | 54 6f 6f 6c 73 2c 73 68 |rn "show|Tools,sh|
|00005290| 6f 77 50 69 63 74 4c 69 | 73 74 2c 2c 6e 65 77 50 |owPictLi|st,,newP|
|000052a0| 61 67 65 2c 63 72 65 61 | 74 65 43 68 61 70 74 65 |age,crea|teChapte|
|000052b0| 72 2c 6e 65 77 43 68 61 | 70 4e 61 6d 65 2c 64 65 |r,newCha|pName,de|
|000052c0| 6c 65 74 65 43 68 61 70 | 74 65 72 2c 2c 68 69 64 |leteChap|ter,,hid|
|000052d0| 65 43 68 61 70 4e 61 6d | 65 2c 2c 6c 6f 63 6b 50 |eChapNam|e,,lockP|
|000052e0| 61 67 65 2c 2c 63 72 65 | 61 74 65 43 6f 6e 74 65 |age,,cre|ateConte|
|000052f0| 6e 74 73 2c 2c 73 65 74 | 46 6f 6e 74 2c 73 65 74 |nts,,set|Font,set|
|00005300| 53 69 7a 65 2c 73 65 74 | 4c 65 61 64 2c 2c 63 72 |Size,set|Lead,,cr|
|00005310| 65 61 74 65 42 6f 6f 6b | 2c 2c 62 6f 6f 6b 48 65 |eateBook|,,bookHe|
|00005320| 6c 70 22 0d 65 6e 64 20 | 6d 61 67 4d 65 6e 75 73 |lp".end |magMenus|
|00005330| 4d 73 67 73 0d 0d 6f 6e | 20 74 65 78 74 49 6e 73 |Msgs..on| textIns|
|00005340| 65 72 74 0d 69 66 20 74 | 6f 6f 6c 73 53 74 61 63 |ert.if t|oolsStac|
|00005350| 6b 28 29 20 74 68 65 6e | 20 65 78 69 74 20 74 65 |k() then| exit te|
|00005360| 78 74 49 6e 73 65 72 74 | 0d 6c 6f 63 6b 20 73 63 |xtInsert|.lock sc|
|00005370| 72 65 65 6e 0d 6c 6f 63 | 6b 20 6d 65 73 73 61 67 |reen.loc|k messag|
|00005380| 65 73 0d 69 66 20 74 68 | 65 20 6c 6f 63 6b 54 65 |es.if th|e lockTe|
|00005390| 78 74 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 |xt of fl|d "Body"|
|000053a0| 20 74 68 65 6e 0d 70 75 | 74 20 74 68 65 20 73 68 | then.pu|t the sh|
|000053b0| 6f 72 74 20 69 64 20 6f | 66 20 74 68 69 73 20 62 |ort id o|f this b|
|000053c0| 67 20 69 6e 74 6f 20 73 | 74 6f 70 43 64 0d 70 75 |g into s|topCd.pu|
|000053d0| 73 68 20 63 64 0d 72 65 | 70 65 61 74 20 75 6e 74 |sh cd.re|peat unt|
|000053e0| 69 6c 20 74 68 65 20 6d | 6f 75 73 65 20 69 73 20 |il the m|ouse is |
|000053f0| 64 6f 77 6e 0d 73 65 74 | 20 74 68 65 20 6c 6f 63 |down.set| the loc|
|00005400| 6b 54 65 78 74 20 6f 66 | 20 66 6c 64 20 22 42 6f |kText of| fld "Bo|
|00005410| 64 79 22 20 74 6f 20 66 | 61 6c 73 65 0d 73 65 74 |dy" to f|alse.set|
|00005420| 20 74 68 65 20 69 63 6f | 6e 20 6f 66 20 62 67 20 | the ico|n of bg |
|00005430| 62 74 6e 20 22 54 68 65 | 54 6f 6f 6c 42 74 6e 22 |btn "The|ToolBtn"|
|00005440| 20 74 6f 20 54 65 78 74 | 0d 67 6f 20 6e 65 78 74 | to Text|.go next|
|00005450| 20 62 67 0d 69 66 20 74 | 68 65 20 73 68 6f 72 74 | bg.if t|he short|
|00005460| 20 69 64 20 6f 66 20 74 | 68 69 73 20 62 67 20 69 | id of t|his bg i|
|00005470| 73 20 73 74 6f 70 43 64 | 20 74 68 65 6e 20 65 78 |s stopCd| then ex|
|00005480| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 72 65 |it repea|t.end re|
|00005490| 70 65 61 74 0d 70 6f 70 | 20 63 64 0d 73 65 74 20 |peat.pop| cd.set |
|000054a0| 74 68 65 20 63 68 65 63 | 6b 4d 61 72 6b 20 6f 66 |the chec|kMark of|
|000054b0| 20 6d 65 6e 75 49 74 65 | 6d 20 22 45 64 69 74 20 | menuIte|m "Edit |
|000054c0| 54 65 78 74 22 20 6f 66 | 20 6d 65 6e 75 20 22 4c |Text" of| menu "L|
|000054d0| 61 79 6f 75 74 22 20 74 | 6f 20 74 72 75 65 0d 65 |ayout" t|o true.e|
|000054e0| 6c 73 65 0d 70 75 74 20 | 74 68 65 20 73 68 6f 72 |lse.put |the shor|
|000054f0| 74 20 69 64 20 6f 66 20 | 74 68 69 73 20 62 67 20 |t id of |this bg |
|00005500| 69 6e 74 6f 20 73 74 6f | 70 43 64 0d 70 75 73 68 |into sto|pCd.push|
|00005510| 20 63 64 0d 72 65 70 65 | 61 74 20 75 6e 74 69 6c | cd.repe|at until|
|00005520| 20 74 68 65 20 6d 6f 75 | 73 65 20 69 73 20 64 6f | the mou|se is do|
|00005530| 77 6e 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 6b 54 |wn.set t|he lockT|
|00005540| 65 78 74 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |ext of f|ld "Body|
|00005550| 22 20 74 6f 20 74 72 75 | 65 0d 73 65 74 20 74 68 |" to tru|e.set th|
|00005560| 65 20 69 63 6f 6e 20 6f | 66 20 62 67 20 62 74 6e |e icon o|f bg btn|
|00005570| 20 22 54 68 65 54 6f 6f | 6c 42 74 6e 22 20 74 6f | "TheToo|lBtn" to|
|00005580| 20 48 61 6e 64 0d 67 6f | 20 6e 65 78 74 20 62 67 | Hand.go| next bg|
|00005590| 0d 69 66 20 74 68 65 20 | 73 68 6f 72 74 20 69 64 |.if the |short id|
|000055a0| 20 6f 66 20 74 68 69 73 | 20 62 67 20 69 73 20 73 | of this| bg is s|
|000055b0| 74 6f 70 43 64 20 74 68 | 65 6e 20 65 78 69 74 20 |topCd th|en exit |
|000055c0| 72 65 70 65 61 74 0d 65 | 6e 64 20 72 65 70 65 61 |repeat.e|nd repea|
|000055d0| 74 0d 70 6f 70 20 63 64 | 0d 73 65 74 20 74 68 65 |t.pop cd|.set the|
|000055e0| 20 63 68 65 63 6b 4d 61 | 72 6b 20 6f 66 20 6d 65 | checkMa|rk of me|
|000055f0| 6e 75 49 74 65 6d 20 22 | 45 64 69 74 20 54 65 78 |nuItem "|Edit Tex|
|00005600| 74 22 20 6f 66 20 6d 65 | 6e 75 20 22 4c 61 79 6f |t" of me|nu "Layo|
|00005610| 75 74 22 20 74 6f 20 66 | 61 6c 73 65 0d 65 6e 64 |ut" to f|alse.end|
|00005620| 20 69 66 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 | if.unlo|ck scree|
|00005630| 6e 0d 65 6e 64 20 74 65 | 78 74 49 6e 73 65 72 74 |n.end te|xtInsert|
|00005640| 0d 0d 0d 6f 6e 20 64 65 | 6c 65 74 65 43 68 61 70 |...on de|leteChap|
|00005650| 74 65 72 0d 69 66 20 74 | 6f 6f 6c 73 53 74 61 63 |ter.if t|oolsStac|
|00005660| 6b 28 29 20 74 68 65 6e | 20 65 78 69 74 20 64 65 |k() then| exit de|
|00005670| 6c 65 74 65 43 68 61 70 | 74 65 72 0d 61 6e 73 77 |leteChap|ter.answ|
|00005680| 65 72 20 22 41 72 65 20 | 79 6f 75 20 73 75 72 65 |er "Are |you sure|
|00005690| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 64 65 6c | you wan|t to del|
|000056a0| 65 74 65 20 74 68 69 73 | 20 61 72 74 69 63 6c 65 |ete this| article|
|000056b0| 3f 22 20 77 69 74 68 20 | 22 43 61 6e 63 65 6c 22 |?" with |"Cancel"|
|000056c0| 20 6f 72 20 22 4f 4b 22 | 0d 69 66 20 69 74 20 69 | or "OK"|.if it i|
|000056d0| 73 20 6e 6f 74 20 22 4f | 4b 22 20 74 68 65 6e 20 |s not "O|K" then |
|000056e0| 65 78 69 74 20 64 65 6c | 65 74 65 43 68 61 70 74 |exit del|eteChapt|
|000056f0| 65 72 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 6c |er.lock |screen.l|
|00005700| 6f 63 6b 20 6d 65 73 73 | 61 67 65 73 0d 75 6e 6d |ock mess|ages.unm|
|00005710| 61 72 6b 20 61 6c 6c 20 | 63 64 73 0d 70 75 74 20 |ark all |cds.put |
|00005720| 66 6c 64 20 22 41 72 74 | 69 63 6c 65 4e 61 6d 65 |fld "Art|icleName|
|00005730| 22 20 69 6e 74 6f 20 74 | 68 69 73 43 68 61 70 0d |" into t|hisChap.|
|00005740| 6d 61 72 6b 20 63 61 72 | 64 73 20 77 68 65 72 65 |mark car|ds where|
|00005750| 20 66 6c 64 20 22 41 72 | 74 69 63 6c 65 4e 61 6d | fld "Ar|ticleNam|
|00005760| 65 22 20 69 73 20 74 68 | 69 73 43 68 61 70 0d 69 |e" is th|isChap.i|
|00005770| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00005780| 6d 61 72 6b 65 64 20 63 | 64 73 20 3d 20 74 68 65 |marked c|ds = the|
|00005790| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 64 73 20 6f | number |of cds o|
|000057a0| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 74 68 65 |f this s|tack the|
|000057b0| 6e 0d 70 75 74 20 28 74 | 68 65 20 6e 75 6d 62 65 |n.put (t|he numbe|
|000057c0| 72 20 6f 66 20 63 64 73 | 20 6f 66 20 74 68 69 73 |r of cds| of this|
|000057d0| 20 73 74 61 63 6b 20 2d | 20 31 29 20 69 6e 74 6f | stack -| 1) into|
|000057e0| 20 74 6f 74 61 6c 44 65 | 6c 0d 65 6c 73 65 0d 70 | totalDe|l.else.p|
|000057f0| 75 74 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ut the n|umber of|
|00005800| 20 6d 61 72 6b 65 64 20 | 63 64 73 20 69 6e 74 6f | marked |cds into|
|00005810| 20 74 6f 74 61 6c 44 65 | 6c 0d 65 6e 64 20 69 66 | totalDe|l.end if|
|00005820| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 78 20 3d |.repeat |with x =|
|00005830| 20 31 20 74 6f 20 74 6f | 74 61 6c 44 65 6c 0d 67 | 1 to to|talDel.g|
|00005840| 6f 20 66 69 72 73 74 20 | 6d 61 72 6b 65 64 20 63 |o first |marked c|
|00005850| 64 0d 64 6f 4d 65 6e 75 | 20 22 44 65 6c 65 74 65 |d.doMenu| "Delete|
|00005860| 20 43 61 72 64 22 0d 65 | 6e 64 20 72 65 70 65 61 | Card".e|nd repea|
|00005870| 74 0d 63 72 65 61 74 65 | 43 6f 6e 74 65 6e 74 73 |t.create|Contents|
|00005880| 0d 65 6e 64 20 64 65 6c | 65 74 65 43 68 61 70 74 |.end del|eteChapt|
|00005890| 65 72 0d 0d 0d 6f 6e 20 | 63 72 65 61 74 65 43 68 |er...on |createCh|
|000058a0| 61 70 74 65 72 0d 69 66 | 20 74 6f 6f 6c 73 53 74 |apter.if| toolsSt|
|000058b0| 61 63 6b 28 29 20 74 68 | 65 6e 20 65 78 69 74 20 |ack() th|en exit |
|000058c0| 63 72 65 61 74 65 43 68 | 61 70 74 65 72 0d 70 75 |createCh|apter.pu|
|000058d0| 74 20 66 6c 64 20 22 41 | 72 74 69 63 6c 65 4e 61 |t fld "A|rticleNa|
|000058e0| 6d 65 22 20 69 6e 74 6f | 20 70 72 65 76 43 68 61 |me" into| prevCha|
|000058f0| 70 4e 61 6d 65 0d 61 73 | 6b 20 22 4e 61 6d 65 20 |pName.as|k "Name |
|00005900| 6f 66 20 6e 65 77 20 61 | 72 74 69 63 6c 65 3f 22 |of new a|rticle?"|
|00005910| 0d 69 66 20 69 74 20 69 | 73 20 65 6d 70 74 79 20 |.if it i|s empty |
|00005920| 74 68 65 6e 0d 61 6e 73 | 77 65 72 20 22 41 72 74 |then.ans|wer "Art|
|00005930| 69 63 6c 65 73 20 6d 75 | 73 74 20 62 65 20 6e 61 |icles mu|st be na|
|00005940| 6d 65 64 2e 22 0d 65 78 | 69 74 20 63 72 65 61 74 |med.".ex|it creat|
|00005950| 65 43 68 61 70 74 65 72 | 0d 65 6e 64 20 69 66 0d |eChapter|.end if.|
|00005960| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 6e 65 77 43 |put it i|nto newC|
|00005970| 68 61 70 4e 61 6d 65 0d | 75 6e 6d 61 72 6b 20 61 |hapName.|unmark a|
|00005980| 6c 6c 20 63 64 73 0d 69 | 66 20 6e 65 77 43 68 61 |ll cds.i|f newCha|
|00005990| 70 4e 61 6d 65 20 69 73 | 20 22 48 65 6c 70 22 20 |pName is| "Help" |
|000059a0| 6f 72 20 6e 65 77 43 68 | 61 70 4e 61 6d 65 20 69 |or newCh|apName i|
|000059b0| 73 20 22 54 61 62 6c 65 | 20 6f 66 20 43 6f 6e 74 |s "Table| of Cont|
|000059c0| 65 6e 74 73 22 20 6f 72 | 20 6e 65 77 43 68 61 70 |ents" or| newChap|
|000059d0| 4e 61 6d 65 20 69 73 20 | 22 43 6f 76 65 72 22 20 |Name is |"Cover" |
|000059e0| 74 68 65 6e 0d 61 6e 73 | 77 65 72 20 22 53 6f 72 |then.ans|wer "Sor|
|000059f0| 72 79 2c 20 63 61 6e d5 | 74 20 75 73 65 20 22 20 |ry, can.|t use " |
|00005a00| 26 20 6e 65 77 43 68 61 | 70 4e 61 6d 65 20 26 20 |& newCha|pName & |
|00005a10| 22 20 61 73 20 61 6e 20 | 61 72 74 69 63 6c 65 20 |" as an |article |
|00005a20| 6e 61 6d 65 2e 22 0d 65 | 78 69 74 20 63 72 65 61 |name.".e|xit crea|
|00005a30| 74 65 43 68 61 70 74 65 | 72 0d 65 6e 64 20 69 66 |teChapte|r.end if|
|00005a40| 0d 6d 61 72 6b 20 63 64 | 73 20 77 68 65 72 65 20 |.mark cd|s where |
|00005a50| 6e 65 77 43 68 61 70 4e | 61 6d 65 20 69 73 20 69 |newChapN|ame is i|
|00005a60| 6e 20 66 6c 64 20 22 41 | 72 74 69 63 6c 65 4e 61 |n fld "A|rticleNa|
|00005a70| 6d 65 22 0d 69 66 20 74 | 68 65 20 6e 75 6d 62 65 |me".if t|he numbe|
|00005a80| 72 20 6f 66 20 6d 61 72 | 6b 65 64 20 63 64 73 20 |r of mar|ked cds |
|00005a90| 3e 20 30 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |> 0 then|.answer |
|00005aa0| 22 41 6e 20 61 72 74 69 | 63 6c 65 20 77 69 74 68 |"An arti|cle with|
|00005ab0| 20 74 68 69 73 20 6e 61 | 6d 65 20 61 6c 72 65 61 | this na|me alrea|
|00005ac0| 64 79 20 65 78 69 73 74 | 73 2e 22 0d 65 78 69 74 |dy exist|s.".exit|
|00005ad0| 20 63 72 65 61 74 65 43 | 68 61 70 74 65 72 0d 65 | createC|hapter.e|
|00005ae0| 6e 64 20 69 66 0d 75 6e | 6d 61 72 6b 20 61 6c 6c |nd if.un|mark all|
|00005af0| 20 63 64 73 0d 6d 61 72 | 6b 20 63 64 73 20 77 68 | cds.mar|k cds wh|
|00005b00| 65 72 65 20 66 6c 64 20 | 22 41 72 74 69 63 6c 65 |ere fld |"Article|
|00005b10| 4e 61 6d 65 22 20 69 73 | 20 70 72 65 76 43 68 61 |Name" is| prevCha|
|00005b20| 70 4e 61 6d 65 0d 67 6f | 20 6c 61 73 74 20 6d 61 |pName.go| last ma|
|00005b30| 72 6b 65 64 20 63 64 0d | 69 66 20 74 68 65 20 73 |rked cd.|if the s|
|00005b40| 68 6f 72 74 20 6e 61 6d | 65 20 6f 66 20 74 68 69 |hort nam|e of thi|
|00005b50| 73 20 63 64 20 69 73 20 | 22 43 6f 76 65 72 22 20 |s cd is |"Cover" |
|00005b60| 6f 72 20 74 68 65 20 73 | 68 6f 72 74 20 6e 61 6d |or the s|hort nam|
|00005b70| 65 20 6f 66 20 74 68 69 | 73 20 63 64 20 69 73 20 |e of thi|s cd is |
|00005b80| 22 48 65 6c 70 22 20 74 | 68 65 6e 0d 67 6f 20 63 |"Help" t|hen.go c|
|00005b90| 64 20 22 54 61 62 6c 65 | 20 6f 66 20 43 6f 6e 74 |d "Table| of Cont|
|00005ba0| 65 6e 74 73 22 0d 65 6e | 64 20 69 66 0d 64 6f 4d |ents".en|d if.doM|
|00005bb0| 65 6e 75 20 22 4e 65 77 | 20 43 61 72 64 22 0d 70 |enu "New| Card".p|
|00005bc0| 75 74 20 69 74 20 69 6e | 74 6f 20 66 6c 64 20 22 |ut it in|to fld "|
|00005bd0| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 0d 69 66 20 |ArticleN|ame".if |
|00005be0| 6e 6f 74 20 74 68 65 20 | 63 68 65 63 6b 4d 61 72 |not the |checkMar|
|00005bf0| 6b 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 22 45 |k of men|uItem "E|
|00005c00| 64 69 74 20 54 65 78 74 | 22 20 6f 66 20 6d 65 6e |dit Text|" of men|
|00005c10| 75 20 22 4c 61 79 6f 75 | 74 22 20 74 68 65 6e 0d |u "Layou|t" then.|
|00005c20| 74 65 78 74 49 6e 73 65 | 72 74 0d 65 6e 64 20 69 |textInse|rt.end i|
|00005c30| 66 0d 73 65 6c 65 63 74 | 20 62 65 66 6f 72 65 20 |f.select| before |
|00005c40| 74 65 78 74 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |text of |fld "Bod|
|00005c50| 79 22 0d 65 6e 64 20 63 | 72 65 61 74 65 43 68 61 |y".end c|reateCha|
|00005c60| 70 74 65 72 0d 0d 0d 6f | 6e 20 63 72 65 61 74 65 |pter...o|n create|
|00005c70| 42 6f 6f 6b 0d 69 66 20 | 74 6f 6f 6c 73 53 74 61 |Book.if |toolsSta|
|00005c80| 63 6b 28 29 20 74 68 65 | 6e 20 65 78 69 74 20 63 |ck() the|n exit c|
|00005c90| 72 65 61 74 65 42 6f 6f | 6b 0d 67 6c 6f 62 61 6c |reateBoo|k.global|
|00005ca0| 20 66 69 6c 65 4e 61 6d | 65 0d 70 75 74 20 65 6d | fileNam|e.put em|
|00005cb0| 70 74 79 20 69 6e 74 6f | 20 70 69 63 74 4c 69 73 |pty into| pictLis|
|00005cc0| 74 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 6c 6f |t.lock s|creen.lo|
|00005cd0| 63 6b 20 6d 65 73 73 61 | 67 65 73 0d 70 75 73 68 |ck messa|ges.push|
|00005ce0| 20 63 64 0d 67 6f 20 73 | 74 61 63 6b 20 22 4d 61 | cd.go s|tack "Ma|
|00005cf0| 67 4d 61 6b 65 72 20 54 | 6f 6f 6c 73 20 41 22 0d |gMaker T|ools A".|
|00005d00| 70 75 74 20 66 6c 64 20 | 22 56 65 72 73 69 6f 6e |put fld |"Version|
|00005d10| 22 20 69 6e 74 6f 20 63 | 75 72 56 65 72 73 69 6f |" into c|urVersio|
|00005d20| 6e 0d 70 6f 70 20 63 64 | 0d 69 66 20 74 68 65 72 |n.pop cd|.if ther|
|00005d30| 65 20 69 73 20 61 20 66 | 6c 64 20 22 50 69 63 74 |e is a f|ld "Pict|
|00005d40| 54 68 69 73 50 61 67 65 | 22 20 74 68 65 6e 0d 69 |ThisPage|" then.i|
|00005d50| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00005d60| 64 6f 77 20 28 69 74 65 | 6d 20 31 20 6f 66 20 66 |dow (ite|m 1 of f|
|00005d70| 6c 64 20 22 50 69 63 74 | 54 68 69 73 50 61 67 65 |ld "Pict|ThisPage|
|00005d80| 22 29 20 74 68 65 6e 20 | 63 6c 6f 73 65 20 77 69 |") then |close wi|
|00005d90| 6e 64 6f 77 20 28 69 74 | 65 6d 20 31 20 6f 66 20 |ndow (it|em 1 of |
|00005da0| 66 6c 64 20 22 50 69 63 | 74 54 68 69 73 50 61 67 |fld "Pic|tThisPag|
|00005db0| 65 22 29 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 74 |e").end |if.put t|
|00005dc0| 68 65 20 6c 6f 6e 67 20 | 6e 61 6d 65 20 6f 66 20 |he long |name of |
|00005dd0| 74 68 69 73 20 73 74 61 | 63 6b 20 69 6e 74 6f 20 |this sta|ck into |
|00005de0| 6d 61 73 74 65 72 42 6f | 6f 6b 0d 61 73 6b 20 66 |masterBo|ok.ask f|
|00005df0| 69 6c 65 20 22 43 72 65 | 61 74 65 20 61 20 6e 65 |ile "Cre|ate a ne|
|00005e00| 77 20 6d 61 67 61 7a 69 | 6e 65 20 6e 61 6d 65 64 |w magazi|ne named|
|00005e10| c9 22 0d 69 66 20 69 74 | 20 69 73 20 6e 6f 74 20 |.".if it| is not |
|00005e20| 22 43 61 6e 63 65 6c 22 | 20 61 6e 64 20 74 68 65 |"Cancel"| and the|
|00005e30| 20 72 65 73 75 6c 74 20 | 69 73 20 65 6d 70 74 79 | result |is empty|
|00005e40| 20 74 68 65 6e 0d 63 72 | 65 61 74 65 20 73 74 61 | then.cr|eate sta|
|00005e50| 63 6b 20 69 74 20 77 69 | 74 68 20 74 68 69 73 20 |ck it wi|th this |
|00005e60| 62 67 0d 65 6c 73 65 0d | 65 78 69 74 20 63 72 65 |bg.else.|exit cre|
|00005e70| 61 74 65 42 6f 6f 6b 0d | 65 6e 64 20 69 66 0d 70 |ateBook.|end if.p|
|00005e80| 75 74 20 69 74 20 69 6e | 74 6f 20 6e 65 77 42 6f |ut it in|to newBo|
|00005e90| 6f 6b 0d 70 75 74 20 67 | 65 74 46 69 6c 65 4e 61 |ok.put g|etFileNa|
|00005ea0| 6d 65 28 74 68 65 20 6c | 6f 6e 67 20 6e 61 6d 65 |me(the l|ong name|
|00005eb0| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 29 20 | of this| stack) |
|00005ec0| 69 6e 74 6f 20 46 69 6c | 65 4e 61 6d 65 0d 67 65 |into Fil|eName.ge|
|00005ed0| 74 20 52 65 73 6f 75 72 | 63 65 73 28 46 69 6c 65 |t Resour|ces(File|
|00005ee0| 4e 61 6d 65 29 0d 73 6f | 72 74 20 69 74 0d 70 75 |Name).so|rt it.pu|
|00005ef0| 74 20 69 74 20 69 6e 74 | 6f 20 72 65 73 4c 69 73 |t it int|o resLis|
|00005f00| 74 0d 70 75 74 20 72 65 | 74 75 72 6e 20 61 66 74 |t.put re|turn aft|
|00005f10| 65 72 20 72 65 73 4c 69 | 73 74 0d 72 65 70 65 61 |er resLi|st.repea|
|00005f20| 74 20 77 69 74 68 20 79 | 20 3d 20 31 20 74 6f 20 |t with y| = 1 to |
|00005f30| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |the numb|er of li|
|00005f40| 6e 65 73 20 6f 66 20 72 | 65 73 4c 69 73 74 0d 69 |nes of r|esList.i|
|00005f50| 66 20 77 6f 72 64 20 31 | 20 6f 66 20 6c 69 6e 65 |f word 1| of line|
|00005f60| 20 79 20 6f 66 20 72 65 | 73 4c 69 73 74 20 69 73 | y of re|sList is|
|00005f70| 20 22 50 49 43 54 22 20 | 74 68 65 6e 20 70 75 74 | "PICT" |then put|
|00005f80| 20 6c 69 6e 65 20 79 20 | 6f 66 20 72 65 73 4c 69 | line y |of resLi|
|00005f90| 73 74 20 26 20 72 65 74 | 75 72 6e 20 61 66 74 65 |st & ret|urn afte|
|00005fa0| 72 20 70 69 63 74 4c 69 | 73 74 0d 65 6e 64 20 72 |r pictLi|st.end r|
|00005fb0| 65 70 65 61 74 0d 69 66 | 20 74 68 65 20 6e 75 6d |epeat.if| the num|
|00005fc0| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 6f 66 20 |ber of l|ines of |
|00005fd0| 70 69 63 74 4c 69 73 74 | 20 3e 20 30 20 74 68 65 |pictList| > 0 the|
|00005fe0| 6e 0d 61 6e 73 77 65 72 | 20 22 43 6f 70 79 20 50 |n.answer| "Copy P|
|00005ff0| 49 43 54 73 20 66 72 6f | 6d 20 6e 65 77 20 6d 61 |ICTs fro|m new ma|
|00006000| 67 61 7a 69 6e 65 3f 22 | 20 77 69 74 68 20 22 44 |gazine?"| with "D|
|00006010| 65 6c 65 74 65 22 20 6f | 72 20 22 43 6f 70 79 22 |elete" o|r "Copy"|
|00006020| 0d 69 66 20 69 74 20 69 | 73 20 22 44 65 6c 65 74 |.if it i|s "Delet|
|00006030| 65 22 20 74 68 65 6e 0d | 70 75 74 20 74 72 75 65 |e" then.|put true|
|00006040| 20 69 6e 74 6f 20 64 65 | 6c 50 69 63 74 73 0d 65 | into de|lPicts.e|
|00006050| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 70 75 74 |nd if.en|d if.put|
|00006060| 20 22 43 6f 76 65 72 2c | 48 65 6c 70 2c 54 61 62 | "Cover,|Help,Tab|
|00006070| 6c 65 20 6f 66 20 43 6f | 6e 74 65 6e 74 73 22 20 |le of Co|ntents" |
|00006080| 69 6e 74 6f 20 70 61 67 | 65 49 74 65 6d 73 0d 72 |into pag|eItems.r|
|00006090| 65 70 65 61 74 20 77 69 | 74 68 20 78 20 3d 20 31 |epeat wi|th x = 1|
|000060a0| 20 74 6f 20 33 0d 67 6f | 20 6d 61 73 74 65 72 42 | to 3.go| masterB|
|000060b0| 6f 6f 6b 0d 67 6f 20 63 | 64 20 28 69 74 65 6d 20 |ook.go c|d (item |
|000060c0| 78 20 6f 66 20 70 61 67 | 65 49 74 65 6d 73 29 0d |x of pag|eItems).|
|000060d0| 64 6f 4d 65 6e 75 20 22 | 43 6f 70 79 20 43 61 72 |doMenu "|Copy Car|
|000060e0| 64 22 0d 67 6f 20 6e 65 | 77 42 6f 6f 6b 0d 69 66 |d".go ne|wBook.if|
|000060f0| 20 78 20 ad 20 31 20 74 | 68 65 6e 0d 67 6f 20 6c | x . 1 t|hen.go l|
|00006100| 61 73 74 0d 64 6f 4d 65 | 6e 75 20 22 50 61 73 74 |ast.doMe|nu "Past|
|00006110| 65 20 43 61 72 64 22 0d | 69 66 20 73 68 6f 72 74 |e Card".|if short|
|00006120| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 63 64 | name of| this cd|
|00006130| 20 69 73 20 22 54 61 62 | 6c 65 20 6f 66 20 43 6f | is "Tab|le of Co|
|00006140| 6e 74 65 6e 74 73 22 20 | 74 68 65 6e 0d 70 75 74 |ntents" |then.put|
|00006150| 20 22 22 20 69 6e 74 6f | 20 63 64 20 66 6c 64 20 | "" into| cd fld |
|00006160| 22 54 61 62 6c 65 31 22 | 0d 70 75 74 20 22 22 20 |"Table1"|.put "" |
|00006170| 69 6e 74 6f 20 63 64 20 | 66 6c 64 20 22 50 61 67 |into cd |fld "Pag|
|00006180| 65 31 22 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |e1".if t|here is |
|00006190| 61 20 63 64 20 66 6c 64 | 20 22 54 61 62 6c 65 32 |a cd fld| "Table2|
|000061a0| 22 20 74 68 65 6e 20 70 | 75 74 20 22 22 20 69 6e |" then p|ut "" in|
|000061b0| 74 6f 20 63 64 20 66 6c | 64 20 22 54 61 62 6c 65 |to cd fl|d "Table|
|000061c0| 32 22 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |2".if th|ere is a|
|000061d0| 20 63 64 20 66 6c 64 20 | 22 50 61 67 65 32 22 20 | cd fld |"Page2" |
|000061e0| 74 68 65 6e 20 70 75 74 | 20 22 22 20 69 6e 74 6f |then put| "" into|
|000061f0| 20 63 64 20 66 6c 64 20 | 22 50 61 67 65 32 22 0d | cd fld |"Page2".|
|00006200| 70 75 74 20 63 75 72 56 | 65 72 73 69 6f 6e 20 69 |put curV|ersion i|
|00006210| 6e 74 6f 20 66 6c 64 20 | 22 56 65 72 73 69 6f 6e |nto fld |"Version|
|00006220| 22 20 6f 66 20 63 64 20 | 22 54 61 62 6c 65 20 6f |" of cd |"Table o|
|00006230| 66 20 43 6f 6e 74 65 6e | 74 73 22 0d 65 6e 64 20 |f Conten|ts".end |
|00006240| 69 66 0d 65 6c 73 65 0d | 70 75 74 20 22 50 61 73 |if.else.|put "Pas|
|00006250| 74 65 20 6d 61 67 61 7a | 69 6e 65 20 63 6f 76 65 |te magaz|ine cove|
|00006260| 72 20 6f 6e 20 74 68 69 | 73 20 70 61 67 65 22 20 |r on thi|s page" |
|00006270| 69 6e 74 6f 20 6c 69 6e | 65 20 36 20 6f 66 20 66 |into lin|e 6 of f|
|00006280| 6c 64 20 22 42 6f 64 79 | 22 0d 73 65 74 20 74 68 |ld "Body|".set th|
|00006290| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 69 73 20 63 |e name o|f this c|
|000062a0| 64 20 74 6f 20 22 43 6f | 76 65 72 22 0d 65 6e 64 |d to "Co|ver".end|
|000062b0| 20 69 66 0d 69 66 20 64 | 65 6c 50 69 63 74 73 20 | if.if d|elPicts |
|000062c0| 69 73 20 74 72 75 65 20 | 74 68 65 6e 20 70 75 74 |is true |then put|
|000062d0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 66 6c 64 20 | empty i|nto fld |
|000062e0| 22 50 69 63 74 54 68 69 | 73 50 61 67 65 22 0d 69 |"PictThi|sPage".i|
|000062f0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 66 6c 64 |f there |is a fld|
|00006300| 20 22 43 6f 70 79 72 69 | 67 68 74 22 20 74 68 65 | "Copyri|ght" the|
|00006310| 6e 20 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |n put em|pty into|
|00006320| 20 66 6c 64 20 22 43 6f | 70 79 72 69 67 68 74 22 | fld "Co|pyright"|
|00006330| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 67 6f 20 6c |.end rep|eat.go l|
|00006340| 61 73 74 0d 64 6f 4d 65 | 6e 75 20 22 4e 65 77 20 |ast.doMe|nu "New |
|00006350| 43 61 72 64 22 0d 70 75 | 74 20 22 41 72 74 69 63 |Card".pu|t "Artic|
|00006360| 6c 65 20 31 22 20 69 6e | 74 6f 20 66 6c 64 20 22 |le 1" in|to fld "|
|00006370| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 0d 63 72 65 |ArticleN|ame".cre|
|00006380| 61 74 65 43 6f 6e 74 65 | 6e 74 73 0d 67 6f 20 63 |ateConte|nts.go c|
|00006390| 64 20 31 0d 70 75 74 20 | 6e 65 77 42 6f 6f 6b 20 |d 1.put |newBook |
|000063a0| 69 6e 74 6f 20 46 69 6c | 65 4e 61 6d 65 0d 69 66 |into Fil|eName.if|
|000063b0| 20 64 65 6c 50 69 63 74 | 73 20 69 73 20 74 72 75 | delPict|s is tru|
|000063c0| 65 20 74 68 65 6e 0d 72 | 65 70 65 61 74 20 77 69 |e then.r|epeat wi|
|000063d0| 74 68 20 7a 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th z = 1| to the |
|000063e0| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|000063f0| 6f 66 20 70 69 63 74 4c | 69 73 74 0d 72 65 6d 6f |of pictL|ist.remo|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.